Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=COUNTIF($A$2:A2,A2)Computed by a real spreadsheet engine on the sample data below.
| Group | Row_Num |
| Sales | |
| Sales | |
| HR |
=COUNTIF($A$2:A2,A2)→1
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.
Use =COUNTIFS($A$2:A2,A2) which has the same behavior — for truly unsorted data you need a helper sort or a more complex SUMPRODUCT formula.
Yes — replace the group column reference with a month/year expression: =COUNTIFS($B$2:B2,B2) where B holds MONTH(date) or TEXT(date,"YYYY-MM").
Combine two columns into one with the & operator — perfect for joining first and last names into a full name.
How-toAutomatically generate sequential invoice numbers with a prefix and zero-padded counter using TEXT and ROW in Excel and Google Sheets.
How-toDelete empty rows quickly by filtering for blanks and deleting visible rows, or use Go To Special in Excel for a one-click approach.
How-toFlip rows and columns using the TRANSPOSE function or Paste Special to convert horizontal data to vertical and vice versa.
How-toMerge values from several columns into one cell using the ampersand operator or CONCAT/TEXTJOIN for delimited output.
How-toReplace empty cells with a default value using IF+ISBLANK, Go To Special fill-down, or a Power Query step for bulk data.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: