Lookup multiple values within multiple date ranges

excelhelper69

New Member
Joined
Feb 26, 2018
Messages
2
Hi,

Is there an automated way to look up a specific value's amount given that it needs to first identify a specific value and then the specific date range given?

Sample data - Identify the price after inputting Value 2 and 11/15/2017

Result should provide - $47.01


ValueValid From Valid To Amount
Value 111/1/2017 11/25/2017 $47.01
Value 111/26/2017 12/31/2017 $56.40
Value 11/1/2018 1/31/2018 $54.05
Value 2 7/1/2017 10/31/2017 $56.40
Value 2 11/1/201711/25/2017 $47.01
Value 2 1/1/20181/31/2018 $54.05
Value 37/1/201710/31/2017 $56.40
Value 311/1/201711/25/2017 $47.01
Value 31/1/20181/31/2018 $54.05

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>


Thank you for any help provided!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Welcome to Mr Excel forum

Try


A
B
C
D
E
F
G
H
1
Value​
Valid From​
Valid To​
Amount​
Value​
Date​
Result​
2
Value 1​
11/01/2017​
11/25/2017​
47,01​
Value 2​
11/15/2017​
47,01​
3
Value 1​
11/26/2017​
12/31/2017​
56,4​
4
Value 1​
01/01/2018​
01/31/2018​
54,05​
5
Value 2​
07/01/2017​
10/31/2017​
56,4​
6
Value 2​
11/01/2017​
11/25/2017​
47,01​
7
Value 2​
01/01/2018​
01/31/2018​
54,05​
8
Value 3​
07/01/2017​
10/31/2017​
56,4​
9
Value 3​
11/01/2017​
11/25/2017​
47,01​
10
Value 3​
01/01/2018​
01/31/2018​
54,05​
11

Formula in H2
=SUMIFS(D:D,A:A,F2,B:B,"<="&G2,C:C,">="&G2)

M.
 
Upvote 0
Sample data - Identify the price after inputting Value 2 and 11/15/2017
Result should provide - $47.01
Value
Valid FromValid ToAmountcol H
Value 111/01/201711/25/20171
Value 111/26/201712/31/20172
Value 101/01/20181/31/20183Value 2
Value 207/01/201710/31/2017425/11/2017
Value 211/01/201725/11/201755row 11
Value 201/01/20181/31/20186
Value 307/01/201710/31/20177
Value 311/01/201711/25/20178
Value 301/01/20181/31/20189
there was no 11/15/2017 AND
some of your dates are text and your dollar amounts were text
this formula gave 5 in H11
=SUMPRODUCT(($A$7:$A$15=$H$9)*($C$7:$C$15=$H$10)*($D$7:$D$15))

<colgroup><col><col><col><col span="4"><col><col span="5"></colgroup><tbody>
</tbody>
 
Upvote 0
Welcome to Mr Excel forum

Try


A
B
C
D
E
F
G
H
1
Value​
Valid From​
Valid To​
Amount​
Value​
Date​
Result​
2
Value 1​
11/01/2017​
11/25/2017​
47,01​
Value 2​
11/15/2017​
47,01​
3
Value 1​
11/26/2017​
12/31/2017​
56,4​
4
Value 1​
01/01/2018​
01/31/2018​
54,05​
5
Value 2​
07/01/2017​
10/31/2017​
56,4​
6
Value 2​
11/01/2017​
11/25/2017​
47,01​
7
Value 2​
01/01/2018​
01/31/2018​
54,05​
8
Value 3​
07/01/2017​
10/31/2017​
56,4​
9
Value 3​
11/01/2017​
11/25/2017​
47,01​
10
Value 3​
01/01/2018​
01/31/2018​
54,05​
11

<tbody>
</tbody>


Formula in H2
=SUMIFS(D:D,A:A,F2,B:B,"<="&G2,C:C,">="&G2)

M.


Works perfect! Thank You!
 
Upvote 0

Forum statistics

Threads
1,216,089
Messages
6,128,750
Members
449,466
Latest member
Peter Juhnke

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