SOLVED

Formula Help

%3CLINGO-SUB%20id%3D%22lingo-sub-1509168%22%20slang%3D%22en-US%22%3EFormula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1509168%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20create%20a%20formula%20that%20will%20search%20text%20and%20return%20only%20the%20value%20that%20has%20the%20greatest%20number%20at%20the%20end%2C%20but%20the%20rest%20of%20the%20value%20prior%20to%20the%20last%20number%20must%20match.%20I%20have%20attached%20a%20photo%20below%20and%20the%20file%20to%20this%20post.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20search%20column%20K%20and%20have%20a%20formula%20in%20column%20L%20that%20returns%20the%20same%20value%20if%20the%20last%20number%20in%20the%20column%20K%20value%20is%20the%20greatest%20out%20of%20any%20value%20in%20column%20K%20when%20the%20rest%20of%20the%20value%20matches.%20I%20have%20typed%20out%20the%20result%20I%20would%20like%20for%20a%20few%20example%20rows%20below.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Excel%20help1.PNG%22%20style%3D%22width%3A%20463px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F204150iD0EFCAA97ADED31C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Excel%20help1.PNG%22%20alt%3D%22Excel%20help1.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20have%20also%20attached%20the%20excel%20file%20and%20the%20working%20formula%20that%20I%20thought%20would%20work%20but%20is%20returning%20the%20%22value%22%20error.%20%3A%26nbsp%3B%20%26nbsp%3B%3DIF(MAX(--(LEFT(%24K%242%3A%24K%245360%2C16)%3DLEFT(K2%2C16))*RIGHT(%24K%242%3A%24K%245360%2C1))%3D--RIGHT(K2%2C1)%2CK2%2C%22%22)%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EAny%20help%20is%20greatly%20appreciated!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1509168%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1509331%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1509331%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F714531%22%20target%3D%22_blank%22%3E%40Benvett14%3C%2FA%3E%26nbsp%3BConsider%20making%20column%20K%20a%20helper%20column%20without%20the%20last%20element%2C%20and%20then%20enter%20the%20formula%20in%20L%20as%20shown%20in%20the%20picture.%20It%20produces%20a%20consistent%20result%2C%20though%20not%20the%20not%20the%20same%20as%20in%20your%20picture.%20Note%20that%20the%20third%20one%20doesn't%20match.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202020-07-08%20at%2017.59.48.png%22%20style%3D%22width%3A%20462px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F204175iF1F046E6CE930E37%2Fimage-dimensions%2F462x150%3Fv%3D1.0%22%20width%3D%22462%22%20height%3D%22150%22%20title%3D%22Screenshot%202020-07-08%20at%2017.59.48.png%22%20alt%3D%22Screenshot%202020-07-08%20at%2017.59.48.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
New 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 a few example rows below.Excel help1.PNG

I have also attached the excel file and the working formula that I thought would work but is returning the "value" error. :   =IF(MAX(--(LEFT($K$2:$K$5360,16)=LEFT(K2,16))*RIGHT($K$2:$K$5360,1))=--RIGHT(K2,1),K2,"")


Any help is greatly appreciated!

1 Reply
Highlighted
Best Response confirmed by Benvett14 (New Contributor)
Solution

@Benvett14 Consider making column K a helper column without the last element, and then enter the formula in L as shown in the picture. It produces a consistent result, though not the not the same as in your picture. Note that the third one doesn't match.

Screenshot 2020-07-08 at 17.59.48.png