Formula Help

Copper Contributor

I am trying to create a formula that will search text and return only the value that has the greatest number at the end, but the rest of the value prior to the last number must match. I have attached a photo below and the file to this post.

 

I am trying to search column K and have a formula in column L that returns the same value if the last number in the column K value is the greatest out of any value in column K when the rest of the value matches. I have typed out the result I would like for the first 3 rows.

excel help.PNG

 

1 Reply

@Benvett14  I have created a formula that works but it is restrictive with some assumptions and need input from you on specific formats that might be in col K.  Here is the formula I put into L661 and entered as an array formula (ctrl+shift+enter) and filled down:

 

=IF(MAX(--(LEFT($K$658:$K$669,11)=LEFT(K661,11))*RIGHT($K$658:$K$669,1))=--RIGHT(K661,1),K661,"")

 

but that assumes the first 11 characters identify the unique first part and the last "rev" digit is only 1 character.  I know neither of these may be true in all cases but didn't want to mess with more elaborate formulas until you explicitly and fully defined the formatting for col K.  for example will the first triple pair of digits before the first "." always be a triple pair of digits with a single space between each?  can that second number that is between the 2 "."s always only 1 or 2 digits (e.g. 0-99)?  If those are both true than the 'simple' left(... , 11) will work.  And finally is that last number always a single digit (e.g. 0-9) or could it be 2 or 3 digits?  

 

EDIT: and WAIT, is there any reason the formula can point back to columns B, C and D from which you are 'CONCATENATE' them to create col K?