Finding a cell value that is a few columns away on the same row, based on most recent value.

Excelwhatsthat

New Member
Joined
Nov 1, 2024
Messages
3
Office Version
  1. 2021
Platform
  1. Windows
Hi folks,

I've got a grid of data as per the image (simplified just for context). I have an Xlookup that allows me to find the latest figure in 24/25, in this case value '2,692' (D6). This ensures the most recent week is showing in a dashboard. For context the formula that I'm using (which won't match the image is this: =XLOOKUP(2,1/(E13:E32<>0),E13:E32,"N/A",-1,-1)

The question I have is, how do I also extract the week # that matches what is pulled from the xlookup above? (i.e. value '5' - A6). I'm thinking some formula that identifies the latest figure, then reads across from that cell in the same row to the cell in column A. I'm sorry, but my Excel skills are middling at best. If someone can provide the solution with the logic behind it that would be amazing! :)

Untitled.jpg
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
How about
Excel Formula:
=XLOOKUP(2,1/(E13:E32<>0),A13:A32,"N/A",-1,-1)
 
Upvote 1
Solution
How about
Excel Formula:
=XLOOKUP(2,1/(E13:E32<>0),A13:A32,"N/A",-1,-1)
Omg Fluff, you are a genius! It works perfectly! Thanks so much! Saved me literally hours trying to figure this out! Have a great day.
 
Upvote 0

Forum statistics

Threads
1,226,112
Messages
6,189,039
Members
453,521
Latest member
Chris_Hed

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