How to lookup value/text in the last 3 rows?

James2376

New Member
Joined
Sep 19, 2023
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Hey, im looking for a way to lookup last 3 rows in a different excel sheet.
im currently using =xlookup(1;1/('[02. Daewoo.xlsx]Prod data'!$A:$A<>"");'[02. Daewoo.xlsx]Prod data'!$A:$A;;;-1) to get the last line, but how do i get the last 3?
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Try this. Modify the number at the end for what you need, currently will return the 3rd last row (-2 will return second-last row, -1 will return last row).
=INDEX('[02. Daewoo.xlsx]Prod data'!$A:$A;2+COUNTIF('[02. Daewoo.xlsx]Prod data'!$A:$A;"<>"&"")-3)
 
Upvote 0
How about
Excel Formula:
=take(filter('[02. Daewoo.xlsx]Prod data'!$A:$A,'[02. Daewoo.xlsx]Prod data'!$A:$A<>""),-3)
Although you would be better off limiting the range rather than using entire columns.
 
Upvote 0

Forum statistics

Threads
1,216,129
Messages
6,129,046
Members
449,482
Latest member
al mugheen

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