RAJESH1960
Banned for repeated rules violations
- Joined
- Mar 26, 2020
- Messages
- 2,313
- Office Version
- 2019
- Platform
- Windows
Hello guys
I am trying to get the values from sheet2 to sheet1 using vlookup. I need help to add one if condition in the formula. If the day in Sheet1 cell B1 is Monday to Friday then it should get the value of Sheet2 cell B2, If the day in Sheet1 cell B1 is Saturday then it should get the value of Sheet2 cell C2 and finally If the day in Sheet1 cell B1 is Saturday then it should get the value of Sheet2 cell D2.
I am trying to get the values from sheet2 to sheet1 using vlookup. I need help to add one if condition in the formula. If the day in Sheet1 cell B1 is Monday to Friday then it should get the value of Sheet2 cell B2, If the day in Sheet1 cell B1 is Saturday then it should get the value of Sheet2 cell C2 and finally If the day in Sheet1 cell B1 is Saturday then it should get the value of Sheet2 cell D2.
Query Vlookup+If.xlsx | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Mon-Fri | Sat | Sun | ||||
2 | April | 100 | 200 | 300 | |||
3 | May | 200 | 300 | 400 | |||
4 | June | 300 | 400 | 500 | |||
5 | July | 400 | 500 | 600 | |||
6 | August | 500 | 600 | 700 | |||
7 | September | 600 | 700 | 800 | |||
8 | October | 700 | 800 | 900 | |||
9 | November | 800 | 900 | 1000 | |||
10 | December | 900 | 1000 | 1100 | |||
11 | January | 1000 | 1100 | 1200 | |||
12 | February | 1100 | 1200 | 1300 | |||
13 | March | 1200 | 1300 | 1400 | |||
14 | |||||||
Sheet2 |
Query Vlookup+If.xlsx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | April | 01-04-2020 | 02-04-2020 | 03-04-2020 | 04-04-2020 | 05-04-2020 | 06-04-2020 | 07-04-2020 | ||
2 | ||||||||||
3 | 100 | |||||||||
4 | ||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B3 | B3 | =VLOOKUP(A1,Sheet2!$A$2:$D$13,2,0) |