VLookup sorting from bottom to top

  • Thread starter Thread starter Legacy 185660
  • Start date Start date
L

Legacy 185660

Guest
Hey guys!
I tried googling this, but the answers I got were way too confusing for me to try to edit.
I need this VLOOKUP formula to search from bottom to top to find the last value.

=VLOOKUP(C3,'Signout History'!A:C,2,FALSE)

Thanks!
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Are you able to use INDEX and MATCH?

Are you able to use an array formula?
 
Upvote 0
Try the following formula, which needs to be confirmed with CONTROL+SHIFT+ENTER, not just ENTER...

=INDEX('Signout History'!$B$2:$B$100,MATCH(2,1/('Signout History'!$A$2:$A$100=C3)))

To avoid having to confirm the formula with CONTROL+SHIFT+ENTER, try the following instead...

=INDEX('Signout History'!$B$2:$B$100,MATCH(2,INDEX(1/('Signout History'!$A$2:$A$100=C3),0)))
 
Upvote 0
Try the following formula, which needs to be confirmed with CONTROL+SHIFT+ENTER, not just ENTER...

=INDEX('Signout History'!$B$2:$B$100,MATCH(2,1/('Signout History'!$A$2:$A$100=C3)))

To avoid having to confirm the formula with CONTROL+SHIFT+ENTER, try the following instead...

=INDEX('Signout History'!$B$2:$B$100,MATCH(2,INDEX(1/('Signout History'!$A$2:$A$100=C3),0)))

That gave me an error saying "Did not find value 2"
Can you give me your email address so I can possibly add you to the google doc? Might make it easier because then you would be able to see the sheet and try it out yourself.
 
Last edited by a moderator:
Upvote 0
Try the following array formula, which needs to be confirmed with CONTTROL+SHIFT+ENTER...

=INDEX('Signout History'!$B$2:$B$100,LARGE(IF('Signout History'!$A$2:$A$100=C3,ROW('Signout History'!$A$2:$A$100)-ROW('Signout History'!$A$2)+1),1))
 
Upvote 0
Try the following array formula, which needs to be confirmed with CONTTROL+SHIFT+ENTER...

=INDEX('Signout History'!$B$2:$B$100,LARGE(IF('Signout History'!$A$2:$A$100=C3,ROW('Signout History'!$A$2:$A$100)-ROW('Signout History'!$A$2)+1),1))

Perfect!
That works!
Thanks a lot!

Will this work for all rows of C?
 
Last edited by a moderator:
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top