Unique number sequence from non unique data sequence - Sumproduct.

KyleG

Well-known Member
Joined
Jun 12, 2004
Messages
623
=SUMPRODUCT((D38=$D$4:$D$201)*(I38<$I$4:$I$201))+1

I have this formula is Column B generating a number based on the number of times a word repeats down column D. But when the figure in column I Is not unique it repeats the number instead of generating a new one.

So I would get 1,2,3,4,4,4,4,8,9.

How can I alter this formula so that the second 4 becomes a 5 etc.

Info possibly required:
*Column D repeated word is always together so it might be bob 5 times then fred 9 times, then sally 3 times etc
*Column I is always highest to lowest number but the number could repeat. 10,9,8,8,8,7,6,6. The formula would return 1,2,3,4,5,6,7,8
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,214,834
Messages
6,121,871
Members
449,054
Latest member
juliecooper255

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