Pick highest numerical version in a List

indy1982

New Member
Joined
Jan 2, 2008
Messages
36
Hello,

I have the data below in Column A, each reference is a different cell going down in the column A1,A2,A3,A4 etc.

I would like a formula that picks out the bold references in the list below, so the highest number in the sequence using the last 2 or 3 numbers in the reference example below (851055TSAPPLE44). The number of characters in the cell could change, but I always want to pick out the 'highest version' by looking at the last 2 or 3 numerical digits (could be more) at the end.

Any help would be much appreciated. I have tried index and match formula to no avail.Thank you.


851055TSAPPLE35
851055TSAPPLE42
851055TSAPPLE43
851055TSAPPLE44
909011TSAPPLE40
909011TSAPPLE48
909011TSAPPLE49
1003983TSAPPLE153
1003983TSAPPLE167
1003983TSAPPLE168
1003983TSAPPLE170
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
what does "by looking at the last 2 or 3 numerical digits (could be more)" the could be more mean? It is a pretty ambiguous question you are asking.
 
Upvote 0
Sorry I should be more clear - it means looking at the last numerial digits in the cell example here is 2 digits 851055TSAPPLE44 but it could be a 3 digit number example 1003983TSAPPLE170
 
Upvote 0
Sorry I should be more clear - it means looking at the last numerial digits in the cell example here is 2 digits 851055TSAPPLE44 but it could be a 3 digit number example 1003983TSAPPLE170
okay, what version of Excel are you using?
 
Upvote 0
Okay, try this:

mr excel questions 14.xlsm
ABCD
1
2851055TSAPPLE3535170
3851055TSAPPLE4242
4851055TSAPPLE4343
5851055TSAPPLE4444
6909011TSAPPLE4040
7909011TSAPPLE4848
8909011TSAPPLE4949
91003983TSAPPLE153153
101003983TSAPPLE167167
111003983TSAPPLE168168
121003983TSAPPLE170170
13
Sheet6
Cell Formulas
RangeFormula
B2:B12B2=IF(ISNUMBER(1*RIGHT(A2:A12,3))=FALSE,RIGHT(A2:A12,2)*1,RIGHT(A2:A12,3)*1)
C2C2=MAX(IF(ISNUMBER(1*RIGHT(A2:A12,3))=FALSE,RIGHT(A2:A12,2)*1,RIGHT(A2:A12,3)*1))
Dynamic array formulas.
 
Upvote 0
Thank you .

I think the problem I will face here is then filtering Column B to say out of the 4 values in cells A2:A5 , 851055TSAPPLE44 is the value I want to pick before moving on to the next one C6:C8.
 
Upvote 0
I just did the max on the total. I don't see any consistency in how you go down the column to determine which series to check for the maximum.
how did you choose those records with the number highlighted? Is there other data we don't see?
 
Upvote 0
The consistency is everything before the numerical value at the end has to match

So for cells A2:A5 I would select A5

The consistent part here is 851055TSAPPLE but I want 851055TSAPPLE44
 
Upvote 0
are the letters in each value always "TSAPPLE"? Or always begin with "T"?
 
Upvote 0

Forum statistics

Threads
1,223,247
Messages
6,171,007
Members
452,374
Latest member
keccles

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