George J
Well-known Member
- Joined
- Feb 15, 2002
- Messages
- 959
I'm going to give the long explanation as this is confusing me - my apologies.
In a workbook I have a client name in column A. I am trying to lookup this name (minus last character) on my "Evidence" sheet. I want to return the data from Column L on that sheet, but if the client name is repeated more than once, to look at column G and return column L's text for the highest value in column G for that client.
I hope that makes sense.
Due to the data comping from a program, I need to drop the last character of the client when searching, otherwise it does not get found. This is even after using clean and trim to get rid of any extra characters (with a client of 20 characters on both sheets it did not find the text even though i checked the string length for both was 20 - hence my dropping the last character, which got that part to work).
This is what I am left with so far.
=SUMPRODUCT(--(ISNUMBER(MATCH(F2&"*",Extracted!$M$6484:$M$6488,0)))*(MAX(Extracted!$G$6484:$G$6488)),(Extracted!$L$6484:$L$6488))
Any suggestions?
In a workbook I have a client name in column A. I am trying to lookup this name (minus last character) on my "Evidence" sheet. I want to return the data from Column L on that sheet, but if the client name is repeated more than once, to look at column G and return column L's text for the highest value in column G for that client.
I hope that makes sense.
Due to the data comping from a program, I need to drop the last character of the client when searching, otherwise it does not get found. This is even after using clean and trim to get rid of any extra characters (with a client of 20 characters on both sheets it did not find the text even though i checked the string length for both was 20 - hence my dropping the last character, which got that part to work).
This is what I am left with so far.
=SUMPRODUCT(--(ISNUMBER(MATCH(F2&"*",Extracted!$M$6484:$M$6488,0)))*(MAX(Extracted!$G$6484:$G$6488)),(Extracted!$L$6484:$L$6488))
Any suggestions?