Hello Friends
Please find the attached file.
I need to find the first and last value for the given input (D2:D3) in light yellow cells (E2:F3).
thanks in advance
Hello Friends
Please find the attached file.
I need to find the first and last value for the given input (D2:D3) in light yellow cells (E2:F3).
thanks in advance
Sekar
For the 1st value, try this, copied down...
=VLOOKUP(D2,$A$1:$B$26,2,0)
Will the list always be sorted like that?
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
Slight modification.
1st entry...
=INDEX($B$1:$B$26,MATCH($D2,$A$1:$A$26,0))
2nd entry, assuming they are sorted...
=INDEX($B$1:$B$26,MATCH($D2,$A$1:$A$26,0)+COUNTIF($A$1:$A$26,D2)-1)
both copied down as needed
Another way.Formula:Please Login or Register to view this content.
Dave
Or try this ...
2nd entry
=LOOKUP(2,1/($A$1:$A$26=$D2),$B$1:$B$26)
Or this array-entered in E2 filled down and across.If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.Formula:Please Login or Register to view this content.
Or this
Enter in E2, copy across and down
Formula:Please Login or Register to view this content.
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
Wow!@! Nice one, AlKey!!! What a lesson. That's beautiful. Couldn't quite figure out where you were going with this one at first. LOL
I guess I need to start playing with AGGREGATE more.
Hello Ford, Hello Dave, Hello Phuocam, Hello Alkey
Thanks for all of you. All of your formulas working well.
thanks again
Happy to help
You're welcome. Thanks for the feedback.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks