Check for most latest FY and only do lookup to the latest year's rows - Ignore the other years.

hananak

Board Regular
Joined
Feb 10, 2022
Messages
69
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi All,

I am looking for a formula in excel that will search for the latest year in column "A". Once found then do a lookup to only those rows which have the latest year and ignore the other years rows.

Currently, in column "A", there are three years. 20-21, 21-22 and 22-23 and 22-23 being the latest year. The formula should identify the latest year 22-23 and then do the lookup in column F on the 22-23 rows only and ignore the other years.

If in future the data changes to 20-21, 21-22, 22-23 and 23-24, it should pick 23-24 and do the lookup on 23-24 rows only.

The formula should be written in column E and lookup value is from column E will get it's values from lookup table in another sheet called Table.

Your help would be really appreciated.
 
@JIMBO992 , my impression was that there will be values in column E and @hananak also wants a formula in the empty cells of column E. And it should be dynamic, which to means unless VBA is used a pull down (or even Array ) formula will erase existing values or prohibit the the formula in the column.
 
Upvote 0

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,214,950
Messages
6,122,436
Members
449,083
Latest member
Ava19

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