Formula to fetch value based on date range

Muralidaran

New Member
Joined
Dec 21, 2011
Messages
7
Hi,
Appreciate your help fetching a value based on the date entered by user, I have tried functions like sumifs and index and multiple matches however couldn't complete as expected.
XLookup function is not available in my version.

Sample data.JPG
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Could you let us know what version(s) you currently have?
 
Upvote 0
Try the below:
Book1
ABCDEFGHI
1
2DateLegendValueDateLegendValue
328-JanMP-RT2401-FebMP-RT24
428-JanMP-OT5401-FebMP-OT54
501-MarMP-RT3401-AprMP-RT34
601-MarMP-OT6408-AprMP-OT64
701-OctMP-RT4401-NovMP-RT44
801-OctMP-OT7401-NovMP-OT74
9
Sheet1
Cell Formulas
RangeFormula
H3:H8H3=INDEX($D$3:$D$8,AGGREGATE(15,6,(ROW($B$3:$B$8)-ROW($B$2))/(($B$3:$B$8<F3)*($C$3:$C$8=G3)),COUNTIF($C$3:C3,G3)))
 
Upvote 1
Solution
Try the below:
Book1
ABCDEFGHI
1
2DateLegendValueDateLegendValue
328-JanMP-RT2401-FebMP-RT24
428-JanMP-OT5401-FebMP-OT54
501-MarMP-RT3401-AprMP-RT34
601-MarMP-OT6408-AprMP-OT64
701-OctMP-RT4401-NovMP-RT44
801-OctMP-OT7401-NovMP-OT74
9
Sheet1
Cell Formulas
RangeFormula
H3:H8H3=INDEX($D$3:$D$8,AGGREGATE(15,6,(ROW($B$3:$B$8)-ROW($B$2))/(($B$3:$B$8<F3)*($C$3:$C$8=G3)),COUNTIF($C$3:C3,G3)))
Thanks for the help, its working.
 
Upvote 0

Forum statistics

Threads
1,216,583
Messages
6,131,557
Members
449,655
Latest member
Anil K Sonawane

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