This formula searches from the top to find the matching value. Is there a way to have it search from the bottom of the range to find the last matching value?![]()
Please Login or Register to view this content.
This formula searches from the top to find the matching value. Is there a way to have it search from the bottom of the range to find the last matching value?![]()
Please Login or Register to view this content.
No, scrub that - I clicked on Submit Post before I tested it.
Pete
Last edited by Pete_UK; 01-18-2015 at 04:05 PM.
Im pretty sure that some1 will give you a better suggestion, but I would do this with a helper column using countif() to count the occurances, then use index/match/large, something like this...
A B C D 1aa 1 1 7 2bb 2 1 aa 3cc 3 1 4aa 4 2 5bb 5 2 6cc 6 2 7aa 7 3 8bb 8 3 9cc 9 3
C1=COUNTIF($A$1:A1,A1)
D1=INDEX($B$1:$B$9,MATCH(D2&LARGE(IF($A$1:$A$9=A1,$C$1:$C$9,0),1),A1:A9&C1:C9,0))
This is an ARRAY formula and needs to be entered using CTRL SHT ENTER, not jusdt enter
d2=search criteria
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Maybe you could sort the data in Z - A (instead of A - Z).
After that you could use your own formula.
Notice my main language is not English.
I appreciate it, if you reply on my solution.
If you are satisfied with the solution, please mark the question solved.
You can add reputation by clicking on the star * add reputation.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks