Max value of specific entry with alphanumeric prefix

hope1025

New Member
Joined
Jan 25, 2015
Messages
3
Hi everyone, I'm new here. Excel is fun it's like a puzzle to me.. However, this one problem I'm having a hard time figuring out.. Kindly help!
I need to get the max value of cell with a "9045-0151-ABC1-WXYZ-TO" prefix only. The row may contain blank cells also, please see below:

9045-0151-ABC1-WXYZ-TO-00063
9045-0151-DEF2-STYX-TI-00066
9045-0151-DEF2-STYX-TI-00079
9045-0151-DEF2-STYX-TI-00056
9045-0151-ABC1-WXYZ-TO-00018
9045-0151-DEF2-STYX-TI-00048
9045-0151-DEF2-STYX-TI-00049
9045-0151-DEF2-STYX-TI-00041
9045-0151-ABC1-WXYZ-TO-00043

Thank you...
:rolleyes::rolleyes::rolleyes:
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Welcome to MrExcel.

Does this work for you?


Excel 2010
AB
19045-0151-ABC1-WXYZ-TO-0006363
29045-0151-DEF2-STYX-TI-00066
39045-0151-DEF2-STYX-TI-00079
49045-0151-DEF2-STYX-TI-00056
59045-0151-ABC1-WXYZ-TO-00018
69045-0151-DEF2-STYX-TI-00048
79045-0151-DEF2-STYX-TI-00049
89045-0151-DEF2-STYX-TI-00041
99045-0151-ABC1-WXYZ-TO-00043
Sheet1
Cell Formulas
RangeFormula
B1{=MAX(IF(LEFT(A1:A9,LEN("9045-0151-ABC1-WXYZ-TO"))="9045-0151-ABC1-WXYZ-TO",RIGHT(A1:A9,5)+0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Really helpful Sir, but I need to get the whole alphanumeric value "9045-0151-ABC1-WXYZ-TO-00063" not just the last 2-digits.. Thank you..
 
Upvote 0
That would be:

="9045-0151-ABC1-WXYZ-TO-"&TEXT(MAX(IF(LEFT(A1:A9,LEN("9045-0151-ABC1-WXYZ-TO"))="9045-0151-ABC1-WXYZ-TO",RIGHT(A1:A9,5)+0)),"00000")
 
Upvote 0

Forum statistics

Threads
1,215,220
Messages
6,123,698
Members
449,117
Latest member
Aaagu

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