ChetanPuri
Board Regular
- Joined
- Sep 5, 2018
- Messages
- 70
- Office Version
- 365
- Platform
- Windows
Hi team,
I am trying to create an if formula, if column C20 = Saturday, then Saturday or Sunday, and if Column B20 includes Sleepover then instead of Saturday or Sunday include Sleepover, other than that use same value in Column B. Not Sure why the formula doesn't work. Any help would be appreciated
I am trying to create an if formula, if column C20 = Saturday, then Saturday or Sunday, and if Column B20 includes Sleepover then instead of Saturday or Sunday include Sleepover, other than that use same value in Column B. Not Sure why the formula doesn't work. Any help would be appreciated
Book3 | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Monday | Night shift | Night shift | ||
2 | Tuesday | Night shift | Night shift | ||
3 | Wednesday | Night shift | Night shift | ||
4 | Thursday | Night shift | Night shift | ||
5 | Friday | Night shift | Night shift | ||
6 | Saturday | Night shift | Saturday | ||
7 | Sunday | Night shift | Sunday | ||
8 | Monday | Night shift | Night shift | ||
9 | Tuesday | Night shift | Night shift | ||
10 | Wednesday | Sleepover | Sleepover | ||
11 | Thursday | Sleepover | Sleepover | ||
12 | Friday | Sleepover | Sleepover | ||
13 | Saturday | Sleepover | Saturday | ||
14 | Sunday | Sleepover | Sunday | ||
15 | Monday | Sleepover | Sleepover | ||
16 | Tuesday | Sleepover | Sleepover | ||
17 | Wednesday | Sleepover | Sleepover | ||
18 | Thursday | Sleepover | Sleepover | ||
19 | Friday | Sleepover | Sleepover | ||
20 | Saturday | Sleepover | Saturday | ||
21 | Sunday | Sleepover | Sunday | ||
22 | Monday | Sleepover | Sleepover | ||
23 | Tuesday | Sleepover | Sleepover | ||
24 | Wednesday | Day shift | Day shift | ||
25 | Thursday | Day shift | Day shift | ||
26 | Friday | Day shift | Day shift | ||
27 | Saturday | Day shift | Saturday | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C1:C27 | C1 | =IF(A1="Saturday","Saturday",IF(A1="Sunday","Sunday",IF(B1="Sleepover","Sleepover",B1))) |