Tally in Excel (All You Need to Know)

In this article, we will discuss and demonstrate how to work with tallies in Excel.

Creating tallies in Excel helps organize, analyze, and present data in a structured manner, leading to improved decision-making and understanding of information. It also helps in data analysis, data validation, reporting, budgeting and financial analysis, inventory management, quality control and error detection.


Download Practice Workbook


How to Create Tally Marks in Excel

Let’s go through 3 easy methods to create tally marks.

Method 1 – Using REPT Function

In this section, we will use the REPT function to create tally marks, along with the FLOOR.MATH and MOD functions.

Steps:

  • Enter the following formula in cell D8:

=FLOOR.MATH(C8,5)/5

Using FLOOR and MATH Functions to make tally amrk in Excel

  • Enter the following formula in cell E8:

=MOD(C9,5)

Use of MOD Function to make tally amrk in Excel

  • Enter the following formula in cell F8:
=REPT($C$4,D8)&REPT($C$5,E8)

This is the final formula to get the tally value.

Applying REPT Function for Tally in Excel


Method 2 – Using a Combination of REPT, QUOTIENT, and MOD Functions

Steps:

  • Enter the following formula in cell D5:
=REPT("tttt ",QUOTIENT(C5,5))&REPT("I",MOD(C5,5))

Combining Functions to make tally amrk in Excel


Method 3 – Using VBA Code

Steps:

  • Right-click on the sheet and select View Code.

Selecting view Code from Context Menu

  • Enter the following VBA code in the Private Sub:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim n_cell As Range
Dim i_cell As Long, j_cell As Long, k_cell As Long
Set n_cell = Me.Range("C5:C11")
Set n_cell = Intersect(n_cell, Target)
If Not n_cell Is Nothing Then
Cancel = True
Application.EnableEvents = False
k_cell = Len(n_cell.Value)
j_cell = k_cell Mod 5
If j_cell = 4 Then
n_cell.Value = n_cell.Value & " "
Else
n_cell.Value = n_cell.Value & "/"
End If
n_cell.Font.Strikethrough = False
For i_cell = 1 To k_cell Step 5
If (j_cell = 4) Or (i_cell < (k_cell - j_cell)) Then
n_cell.Characters(i_cell, 4).Font.Strikethrough = True
End If
Next
Application.EnableEvents = True
End If
End Sub
VBA code to add tally in Excel

vba code to make tally amrk in Excel

  • Save the code and return to your worksheet.

When you double-click in a cell that is presented in the range C5:C11, a tally mark will be added.

Tally in Excel cell

To count Total Votes, we will use the LEN function.

  • Enter the following formula in cell D5:

=LEN(C5)

Use of LEN Function

Read More: Make Tally Marks in Excel


How to Create a Tally Chart in Excel

Steps:

  • Enter the following formula in cell D8:

=FLOOR.MATH(C8,5)

Completing Group and Single columns

  • Select the Groups and Singles column.
  • Go to the Insert tab.
  • From Insert Column or Bar Chart, select 2-D Stacked Bar.

Selecting Bar Chart

  • Right-click on the y-axis and select Format Axis.
  • From the From Axis dialog box, mark Categories in reverse order.

Marking Categories in Reverse Order

  • Double-click on any of the bars.
  • From the Format Data Point dialog box, set Gap Width to 0%.

Making Gap Width 0%

  • Delete the unneeded visual elements like Chart Title, Legend and Axis.
  • Copy cell C4 by pressing CTRL+C.
  • Double-click on a Blue.
  • Select Fill in the Format Data Series dialog box.
  • Select Picture or texture fill.
  • Click on Clipboard.
  • Select Stack and Scale with.
  • Enter 5 in Units/Pictures.

Selecting items in Format Data Series dialog box

  • Copy cell C5.
  • Double-click on an Orange bar.
  • Repeat the procedure in the previous steps.

Double-Clicking on Orange colored bars

The tally chart is complete.

Created Tally Chart

Read More: How to Make a Tally Chart


How to Make a Tally Sheet in Excel

We have 2 methods available to make a tally sheet.

Method 1 – Using LEN Function

To count Total Votes, we will use the LEN function.

Steps:

  • Enter the following formula in cell D5:
=LEN(C5)

Applying LEN Function

 


Method 2 – Using FREQUENCY and REPT Functions

We can also use the FREQUENCY and REPT functions to make a tally sheet in Excel.

Steps:

  • Enter the following formula in cell G6:

=FREQUENCY(C5:C12,F6:F8)

Applying FREQUENCY Function

  • Enter the following formula in cell H6:

=REPT("/",G6)

Use of REPT function

Read More: How to Make a Tally Sheet


Alternative: Count Values in Excel

In this section, we will calculate the number of cells that contain Votes, using the COUNT function.

Steps:

  • Enter the following formula in cell C13:
=COUNT(C5:C11)

Using COUNT Function


Tally in Excel: Knowledge Hub


<< Go Back to Excel for Statistics | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Afia Kona
Afia Kona

Afia Aziz Kona, a graduate of Civil Engineering from Khulna University of Engineering & Technology, Bangladesh, serves as a technical content creator in the ExcelDemy project. Possessing a passion for innovation and critical thinking, she actively embraces challenges. Beyond her engineering background, Afia exhibits a keen interest in Excel, having authored numerous articles on Excel & VBA-related issues to simplify the experience for users facing obstacles in Excel. Apart from creating Excel tutorials, she is also... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo