Max (Alphanumeric) + 1

qadeerahmed

New Member
Joined
Nov 5, 2015
Messages
6
Hi,

I am looking to find the Max Alphanumeric Serial Number that is in a column and increment by 1 by meeting multiple criteria provided.

here is what I found on this site
http://www.mrexcel.com/forum/excel-questions/749540-find-max-alphanumeric-serial-number.html

Code:
[{="GI-" &MAX([COLOR=blue]([COLOR=red]MID([COLOR=green]$C$1:$C5,3,255[/COLOR])&".00"[/COLOR])+0[/COLOR])+1}/CODE]


Here is Example
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Type[/TD]
[TD]Dept.[/TD]
[TD]Doc#[/TD]
[/TR]
[TR]
[TD]IG[/TD]
[TD]Purchasing[/TD]
[TD]IG-1123[/TD]
[/TR]
[TR]
[TD]IG[/TD]
[TD]Purchasing[/TD]
[TD]IG-1124[/TD]
[/TR]
[TR]
[TD]IG[/TD]
[TD]Purchasing[/TD]
[TD]IG-1122[/TD]
[/TR]
[TR]
[TD]IG[/TD]
[TD]Purchasing[/TD]
[TD]IG-1122-A[/TD]
[/TR]
[TR]
[TD]IG[/TD]
[TD]Purchasing[/TD]
[TD]IG-1125[/TD]
[/TR]
[TR]
[TD]CP[/TD]
[TD]Procurement[/TD]
[TD]CP-1210[/TD]
[/TR]
[TR]
[TD]CP[/TD]
[TD]Procurement[/TD]
[TD]IG-1211[/TD]
[/TR]
[TR]
[TD]CP[/TD]
[TD]Procurement[/TD]
[TD]IG-1211-A[/TD]
[/TR]
</tbody>[/TABLE]
e.g. 
[B]IF[/B]
Criteria= Purchasing [I](Dept.) [/I][B]then
[/B]Output[I]= [/I][I]Max(Doc#)+1[/I] i.e. [B][U]IG-1126[/U][/B]
[TABLE="width: 324"]
<tbody>[TR]
[TD]Appreciated![/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[TABLE="width: 243"]
[FONT=Times New Roman][SIZE=3][COLOR=#000000] [/COLOR][/SIZE][/FONT]<colgroup><col width="324" style="width: 243pt; mso-width-source: userset; mso-width-alt: 11849;">[FONT=Times New Roman][SIZE=3][COLOR=#000000] [/COLOR][/SIZE][/FONT]<tbody>[TR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000]  [/COLOR][/SIZE][/FONT][TD="width: 324, bgcolor: transparent"][FONT=Calibri][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][/TD]
[FONT=Times New Roman][SIZE=3][COLOR=#000000] [/COLOR][/SIZE][/FONT][/TR]
[FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT]</tbody>[/TABLE]
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi,

first attempt using AGGREGATE (avalaible from Excel 2010)

="IG-"&AGGREGATE(14,6,MID($C$1:$C8,4,10)+1,1)

Hope it helps
 
Upvote 0

Forum statistics

Threads
1,215,473
Messages
6,125,018
Members
449,203
Latest member
tungnmqn90

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