Find highest number when mixedwith text in each cell

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,210
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi everyone,
I need to find the highest invoice number but the cels are not numbers but text

They look like this,

[TABLE="width: 86"]
<colgroup><col></colgroup><tbody>[TR]
[TD]CA0939[/TD]
[/TR]
[TR]
[TD]CA0940[/TD]
[/TR]
[TR]
[TD]CA0935[/TD]
[/TR]
[TR]
[TD]CA0928

so all I want to do is return the highest number into Sheet Control AB25

so it would be CA0940
its in sheet "RAW" Column A
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Would this work?

=VLOOKUP("*"&MAX(RIGHT(A2:A5, 4)+0), A2:A5, 1, FALSE)

Would need to adjust the range.

Entered as an array with ctrl + shift+ enter.
 
Upvote 0
The CSE formula (entered with Ctrl-Shift-Enter) will return the highest index of CA numbers in column A. The "CA" is not part of the returned value.

=MATCH(0, COUNTIF(A:A,">CA"&TEXT(ROW(A1:A9999),"0000")),0)
 
Upvote 0
Thank you final flight but thats what I tried and get CA9 above CA4000 (as examples) because it see them as alphabetical.
mikeerickson, brilliant, thank you fixed that problem perfectly :-)
Tony
 
Upvote 0

Forum statistics

Threads
1,223,703
Messages
6,173,980
Members
452,540
Latest member
haasro02

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