BrettOlbrys1
Board Regular
- Joined
- May 1, 2018
- Messages
- 128
- Office Version
- 365
- Platform
- Windows
Hello. I have two tables. The first table has an "Activation Code" and the "Date" the Activation code was used. The second table is a historical table of data based on that Activation Code.
Table 1
Table 2 - Historical Data
What I need to do is look up an Activation Code's value from Table 1 based on the date it was used, against the Table 2 historical data, and return whatever the Activation Code's value was at that time.
So the result, when I look up the codes in Table 1, should be:
12345 on 2/17/22 = Northeast
12345 on 4/4/22 = Southeast
12345 on 8/11/22 = Central
How should the formula be constructed?
Table 1
A | B | |
1 | Activation Code | Date When Code Was Used |
2 | 12345 | 2/17/22 |
3 | 12345 | 4/4/22 |
4 | 12345 | 8/11/22 |
Table 2 - Historical Data
A | B | C | |
1 | Activation Code | Date | Value |
2 | 12345 | 1/1/22 | Northeast |
3 | 12345 | 3/1/22 | Southeast |
4 | 12345 | 6/1/22 | Central |
5 | 12345 | 11/1/22 | West |
What I need to do is look up an Activation Code's value from Table 1 based on the date it was used, against the Table 2 historical data, and return whatever the Activation Code's value was at that time.
So the result, when I look up the codes in Table 1, should be:
12345 on 2/17/22 = Northeast
12345 on 4/4/22 = Southeast
12345 on 8/11/22 = Central
How should the formula be constructed?