Find the max form concaternated code

Oubok

Board Regular
Joined
Sep 12, 2011
Messages
116
I have a list of codes that were concaternated but do not follow in rows eg:
Row 10 DE 1 8 DE = area, 1 =counter, 8 = section
Row 11
Row 12 OC 1 4
Row 13 DE 2 8
Row 14 MY 1 23
Row 15
Row 16 NG 1 30
Row 17 DE 3 8
Row 18 OC 2 4
etc

I need to find out the highest (max) counter for each section (8,4,23 & 30) Can someone please help me??
Much appreciated,
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi,

Probably easiest to seperate numbers into different column

Could do this by either text to columns (use fixed width)

or use formula:

=VALUE(RIGHT(A1,LEN(A1)-FIND(" ",A1,4)))
 
Upvote 0
You might want to de-concatenate those cells with TextToColumns.

But with your cocatenated data in A10:A18, this will return the Max counter of the section that is in C1.
Assuming the data looks like "DE 1 8".

=MAX((TRIM(RIGHT(A10:A18,LEN(C1)))=C1&"")*(0&TRIM(MID(SUBSTITUTE(A10:A18," ",REPT(" ",255)),255,255))))

This needs to be entered with Ctrl-Shift-Enter (Cmd+Return for Mac)
 
Upvote 0
Thanks im gonna try both ways to see if I can get the right answer. I should have mentioned that DE 1 8 is in coloum E.
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,328
Members
452,907
Latest member
Roland Deschain

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