Counting instance # for criterion in other cell

virtuosok

Board Regular
Joined
Sep 2, 2020
Messages
209
Office Version
  1. 365
Platform
  1. Windows
Hi,
I have two columns as follows (let's say they are column A and column B)
Jennifer1
John2
Jack3
John4
Jennifer5
Jack6
Jack7
Jack8
John9
Jennifer10
I need a formula for column C which would tell me the instance # for the adjacent entry in column B, for a person in column A. In other words, I would need the formula to return
"1" for Jennifer 1
"2" for Jennifer 5
"3" for Jennifer 10
Thanks for your suggestions!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Is this what you mean?

21 09 10.xlsm
ABC
1
2Jennifer11
3John21
4Jack31
5John42
6Jennifer52
7Jack62
8Jack73
9Jack84
10John93
11Jennifer103
Instance
Cell Formulas
RangeFormula
C2:C11C2=COUNTIF(A$2:A2,A2)
 
Upvote 0
Solution
You're welcome. Thanks for the confirmation. :)
 
Upvote 0

Forum statistics

Threads
1,215,316
Messages
6,124,228
Members
449,149
Latest member
mwdbActuary

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