Index for changing values

Ali3435

New Member
Joined
Jul 13, 2018
Messages
2
Hi, I'm hoping to find a formula that returns every matching instance of my catalogue number from a set of data, but which also resets for every new catalogue number. The formula I'm using so far is:

{=INDEX(Table1,SMALL(IF(Table1[Catalogue_Number]=E12,ROW(Table1[Catalogue_Number])),ROW(1:1))-1,17)}

But the second ROW needs to reset to 1 for each new catalogue number. Part of the data is below, but continues for ~500 rows with ~200 different values. As you can see the first 2 results work, but then it tries to find the 3rd smallest value for the next catalogue number.

Catalogue
Number SNB
HD238 18385
HD238 23329
HD239 #NUM !
HD239 #NUM !
HD244 #NUM !
HD246 #NUM !
HD248 #NUM !
HD248 #NUM !
HD249 #NUM !
HD249 #NUM !
HD249 #NUM !
HD251 #NUM !
HD251 #NUM !
HD251 #NUM !
HD251 #NUM !
HD253 #NUM !
HD253 #NUM !
HD254 #NUM !
HD254 #NUM !
HD254 #NUM !
HD254 #NUM !

Any help would be much appreciated!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Fixed it, entered a new column with =COUNTIF(E$12:E12,E12) and changed the ROW(1:1) to the value of that cell
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,249
Members
452,623
Latest member
Techenthusiast

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