Retrieve sequential numbers with multiple instances and alpha/numeric characters.

HockeyDiablo

Board Regular
Joined
Apr 1, 2016
Messages
182
AuuXK


I am trying top place a sequential value to my booth numbers by name. I am having issues when there are:



  • 2 instances of non sequential numbers "example: KS GOLF KARTS, INC" 144-155 [Desired Result: 144-146 & 153-155]
  • When there is an Alpha character in the numeric values "example: GARAGE DOOR NARCISSIST" 0 [Desired Result: C01-C02]


The array in the 3rd column is as follows:

Code:
=IF(MIN(IF($B$2:$B$15=B2,$A$2:$A$15))=MAX(IF($B$2:$B$15=B2,$A$2:$A$15)),MIN(IF($B$2:$B$15=B2,$A$2:$A$15)),CONCATENATE(MIN(IF($B$2:$B$15=B2,$A$2:$A$15)),"-",MAX(IF($B$2:$B$15=B2,$A$2:$A$15))))

ty

-J
 
Last edited:

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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