Number Each Occurance

Nanogirl21

Active Member
Joined
Nov 19, 2013
Messages
330
Office Version
  1. 365
Platform
  1. Windows
I am trying to number each time a matching search item appears in a list. I am using the below formula and it is not working. If the search term appears 4 times then results says 4 for each item instead of being numbered as 1, 2, 3, 4. How can I number each occurance? Can someone please help. Thank you.

=COUNTIF($D$3:D100,D3),"")
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
While I don't see why what you have doesn't work, what happens if you make the D100 absolute; that is, change it to $D$100)?
 
Upvote 0
Hi,

Do you mean this:

Book3.xlsx
DE
3a1
4b1
5c1
6a2
7a3
8d1
9d2
10r1
11b2
12c2
13a4
14b3
15c3
Sheet949
Cell Formulas
RangeFormula
E3:E15E3=COUNTIF(D$3:D3,D3)
 
Upvote 0
Solution
Yes, this is exactly what I am looking for, but even using that formula it still is not working for me.

=COUNTIF(D$3:D3,D3)

It works if you use the $ symbol Only at the first instance of D$3, use the formula AS-IS shown above.
 
Upvote 0
You Edited while I was replying.

You're welcome, glad you got it working, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,261
Messages
6,123,931
Members
449,134
Latest member
NickWBA

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