find position of 2nd, 3rd, 4th occurence of word in list

jammoca

Banned
Joined
Nov 6, 2002
Messages
1,100
If I have a list of words in columnA, I already have a formula that finds the position of the first occurence of the word "hello" which is found in cell B2 :

=MATCH(B2,$A:$A,0)

But is there a formula that will find the 2nd occurence of the same word, which I can then manipulate to find the 3rd occurence, 4th occurence etc etc etc.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
If I have a list of words in columnA, I already have a formula that finds the position of the first occurence of the word "hello" which is found in cell B2 :

=MATCH(B2,$A:$A,0)

But is there a formula that will find the 2nd occurence of the same word, which I can then manipulate to find the 3rd occurence, 4th occurence etc etc etc.

E2 houses a value from 1,2,3,...,N.

Control+shift+enter, not just enter...

=SMALL(IF($A$2:$A$1000=B2,ROW($A$2:$A$1000)),E2)

would yield the row of the Nth occurrence of the item in B2 as specified in E2, and the following the address:

=CELL("address",INDEX($A$2:$A$1000,SMALL(IF($A$2:$A$1000=B2,ROW($A$2:$A$1000)),E2)))
 
Upvote 0

Forum statistics

Threads
1,215,746
Messages
6,126,639
Members
449,325
Latest member
Hardey6ix

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