Count and Match Formula

JoeRooney

Board Regular
Joined
Nov 27, 2017
Messages
169
Office Version
  1. 365
Hi , I need some assistance with a count and match formula to count unique values

I need to count unique values in order as they appear in the spreadsheet , I have gave an example below of the result i would like to get in column B.

Thanks

PolicyCount
ABC1
ABC2
ABC3
DEF1
DEF2
DEF3
DEF4
GHI1
GHI2
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
assuming in column A

=countif($A$2:A2,A2)

Book1
ABC
1PolicyCount
2ABC11
3ABC22
4ABC33
5DEF11
6DEF22
7DEF33
8DEF44
9GHI11
10GHI22
Sheet1
Cell Formulas
RangeFormula
C2:C10C2=COUNTIF($A$2:A2,A2)
 
Upvote 0
Solution
assuming in column A

=countif($A$2:A2,A2)

Book1
ABC
1PolicyCount
2ABC11
3ABC22
4ABC33
5DEF11
6DEF22
7DEF33
8DEF44
9GHI11
10GHI22
Sheet1
Cell Formulas
RangeFormula
C2:C10C2=COUNTIF($A$2:A2,A2)
assuming in column A

=countif($A$2:A2,A2)

Book1
ABC
1PolicyCount
2ABC11
3ABC22
4ABC33
5DEF11
6DEF22
7DEF33
8DEF44
9GHI11
10GHI22
Sheet1
Cell Formulas
RangeFormula
C2:C10C2=COUNTIF($A$2:A2,A2)
Works perfect, thank you
 
Upvote 0

Forum statistics

Threads
1,215,091
Messages
6,123,062
Members
449,089
Latest member
ikke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top