AlanStrobel
New Member
- Joined
- Aug 22, 2013
- Messages
- 10
Trying to get the highlighted cells with Friday date to be be blank if it should and filled in if there is a 5th Friday.
Book3 | ||||
---|---|---|---|---|
A | B | |||
14 | Monday | FALSE | ||
15 | Tuesday | FALSE | ||
16 | Wednesday | FALSE | ||
17 | Thursday | FALSE | ||
18 | Friday | TRUE | ||
19 | Saturday | FALSE | ||
20 | Sunday | FALSE | ||
21 | Monday | FALSE | ||
22 | Tuesday | FALSE | ||
23 | Wednesday | FALSE | ||
24 | Thursday | FALSE | ||
25 | Friday | TRUE | ||
26 | Saturday | FALSE | ||
27 | Sunday | FALSE | ||
28 | Monday | FALSE | ||
29 | Tuesday | FALSE | ||
30 | Wednesday | FALSE | ||
31 | Thursday | FALSE | ||
32 | Friday | TRUE | ||
33 | Saturday | FALSE | ||
34 | Sunday | FALSE | ||
35 | Monday | FALSE | ||
36 | Tuesday | FALSE | ||
37 | Wednesday | FALSE | ||
Sheet2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B14:B37 | B14 | =WEEKDAY(A14,1)=6 |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
A14:B37 | Expression | =WEEKDAY(A14,1)=6 | text | NO |
=IF(ROWS($T$3:$T3)=1,DATE(2024,1,1)+6-WEEKDAY(DATE(2024,1,1),1),IF(MOD(ROWS($T$3:$T3),5)=0,IF(MONTH($T2+7)=MONTH($T2),$T2+7,""),MAX($T$2:$T2)+7))