SOLVED

What's the best formula to use in based on the below - r.e. date =if conditioning

Copper Contributor

hello what's my best formula for the below 

a              b                 c                     d

Trading weekDayDelivery dateDespatch Date 
1Sunday10/01/202209/01/2022

 

my column c is hard keyed, and d is -1 automated, this generates column B's date.

now i can't have column B having a Sunday value, which generates off a =Test'DDDD' function based on column d, so need to autocorrect to a Saturday value when Sunday value are triggered

 

I can't use column Das it generates a circular reference which i don't want so assume i need to have column b off column c which is hard keyed

 

2 Replies
best response confirmed by cmckernan1 (Copper Contributor)
Solution

@cmckernan1 

The formula in D can check if the weekday of the date in C is a Monday. If so, deduct 2 days to avoid Sundays, otherwise deduct 1 day.

 

Riny_van_Eekelen_0-1692086944374.png

 

1 best response

Accepted Solutions
best response confirmed by cmckernan1 (Copper Contributor)
Solution

@cmckernan1 

The formula in D can check if the weekday of the date in C is a Monday. If so, deduct 2 days to avoid Sundays, otherwise deduct 1 day.

 

Riny_van_Eekelen_0-1692086944374.png

 

View solution in original post