Unique number sequence from non unique data sequence - Sumproduct.

KyleG

Well-known Member
Joined
Jun 12, 2004
Messages
629
Office Version
  1. 365
Platform
  1. Windows
=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

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,224,885
Messages
6,181,574
Members
453,055
Latest member
cope7895

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