kumara_faith
Well-known Member
- Joined
- Aug 19, 2006
- Messages
- 951
- Office Version
- 365
Hi,
I have the following table:
In Table 1 I have the name of staffs, the date of the transaction and their branch . In Table 2, I have the name of the staffs and information if there have been transferred and their respective transfer date. Michelle was in New York until she was transferred to Baltimore on 4/10/23 and then again transferred to LA on 1/11/23. As such, the branch name in column D shows the branch according to Table 2. I am trying to use a xlookup to populate the correct branch in column D but I cant seems to include the date logic. Is there any way to get the right results in column D with a formula ? Thanks for all the help.
I have the following table:
Book1 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | J | K | |||
2 | Table 1 | Table 2 | ||||||||||
3 | Name | Date | Branch | Name | Branch1 | Transfer Date | Branch2 | Transfer Date | Branch3 | |||
4 | Jonas | 1/10/2023 | Chicago | Jonas | Chicago | |||||||
5 | Danny | 1/10/2023 | Dallas | Danny | Dallas | |||||||
6 | Michelle | 1/10/2023 | New York | Michelle | New York | 4/10/2023 | Baltimore | 1/11/2023 | Los Angeles | |||
7 | Jonas | 1/10/2023 | Chicago | |||||||||
8 | Danny | 5/10/2023 | Dallas | |||||||||
9 | Michelle | 4/10/2023 | Baltimore | |||||||||
10 | Jonas | 1/10/2023 | Chicago | |||||||||
11 | Danny | 1/10/2023 | Dallas | |||||||||
12 | Michelle | 7/10/2023 | Baltimore | |||||||||
13 | Jonas | 4/11/2023 | Chicago | |||||||||
14 | Danny | 4/11/2023 | Dallas | |||||||||
15 | Michelle | 4/11/2023 | Los Angeles | |||||||||
Sheet1 |
In Table 1 I have the name of staffs, the date of the transaction and their branch . In Table 2, I have the name of the staffs and information if there have been transferred and their respective transfer date. Michelle was in New York until she was transferred to Baltimore on 4/10/23 and then again transferred to LA on 1/11/23. As such, the branch name in column D shows the branch according to Table 2. I am trying to use a xlookup to populate the correct branch in column D but I cant seems to include the date logic. Is there any way to get the right results in column D with a formula ? Thanks for all the help.