I need a formula that will lookup a value based on two criteria, one just a cell reference, the other if the period falls within a given range. I was thinking this could be done using a Index>Match formula, but the date range is throwing me off. I'm hoping this can be accomplished without an array formula because the actual data set is lengthy. Any help in pointing me in the right direction would be greatly appreciated.
Excel 2012 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | Data | Reference Table | |||||||||
2 | Period | Ref1 | Value Lookup | BegPeriod | EndPeriod | Ref1 | Value | ||||
3 | 201503 | 1 | 200 | 201001 | 201206 | 1 | 100 | ||||
4 | 201504 | 2 | 400 | 201207 | 201506 | 1 | 200 | ||||
5 | 201306 | 1 | 200 | 201001 | 201412 | 2 | 300 | ||||
6 | 201409 | 2 | 300 | 201501 | 201506 | 2 | 400 | ||||
7 | 201301 | 2 | 300 | 201001 | 201506 | 3 | 500 | ||||
8 | 201107 | 1 | 100 | ||||||||
9 | 201506 | 1 | 200 | ||||||||
10 | 201309 | 3 | 500 | ||||||||
11 | 201207 | 1 | 200 | ||||||||
12 | 201210 | 3 | 500 | ||||||||
13 | 201503 | 2 | 400 | ||||||||
14 | 201412 | 2 | 300 | ||||||||
Sheet1 |