Horizontal Lookup on Multiple Rows

Naru2

New Member
Joined
Apr 9, 2014
Messages
41
I have a spreadsheet with several years and values working down the page. I'm trying to find a formula where I can lookup a date to the data set, but the date is not always going to be in that first row, it could be several rows down. Then I need the corresponding number below it. So, find the date amongst several rows and then return the value that is 1 row below that. Thanks!

1714394088055.png
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
is the date you seek always the first of the month? If the date is the 27th of the month, do you want that month, or the next month?
 
Upvote 0
is the date you seek always the first of the month? If the date is the 27th of the month, do you want that month, or the next month?
The dates are formatted to always be 1st of the month, so 1/1/2025, 2/1/2025, etc.
 
Upvote 0
And are the numbers adjacent to the dates less than the minimum date value or greater than the maximum date value?
 
Upvote 0
maybe this will work for you:

this could also work too, if the months are all consecutive as
Excel Formula:
=INDEX($A$3:$L$100,MATCH(YEAR(P3),YEAR($A$3:$A$100),0)+1,MONTH($P$3))

Book1
ABCDEFGHIJKLMNOP
1
2
32025-012025-022025-032025-042025-052025-062025-072025-082025-092025-102025-112025-12Date to Find2026-05-01
4314845283635463140424745Result29
5
6
72026-012026-022026-032026-042026-052026-062026-072026-082026-092026-102026-112026-12
8283135262912443325421122
9
10
Sheet2
Cell Formulas
RangeFormula
P4P4=INDEX($A$3:$L$100,MATCH(YEAR(P3),YEAR($A$3:$A$100),0)+1,MATCH(MONTH($P$3),MONTH($A$3:$L$3),0))
 
Upvote 0
And are the numbers adjacent to the dates less than the minimum date value or greater than the maximum date value?
I'm not sure exactly what you're asking, but the dates are going to be anything between 2024 and 2034. The number values below the dates are units, so could be in the 10's, 100's or 1,000's.
 
Upvote 0
I'm not sure exactly what you're asking, but the dates are going to be anything between 2024 and 2034. The number values below the dates are units, so could be in the 10's, 100's or 1,000's.
dates are stored as numbers, as long as your numbers are not between
45292 and 49279 you should be good.
 
Upvote 0
maybe this will work for you:

this could also work too, if the months are all consecutive as
Excel Formula:
=INDEX($A$3:$L$100,MATCH(YEAR(P3),YEAR($A$3:$A$100),0)+1,MONTH($P$3))
The dates are not always consecutive, and the values are not always directly underneath. The value could be 9 or so rows below it.
 
Upvote 0

Forum statistics

Threads
1,223,445
Messages
6,172,176
Members
452,446
Latest member
walkman99

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