Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How do I write a code to create grouping for dates? (In terms of weekend vs weekday)
For Example:
17/7/2023 --> Weekday
18/7/2023 --> Weekday
22/7/2023 --> Weekend
23/7/2023 --> Weekend
Try:
=If(Match(WeekDay(DateField), 'Sat', 'Sun'), 'Weekend', 'Weekday')
Try:
=If(Match(WeekDay(DateField), 'Sat', 'Sun'), 'Weekend', 'Weekday')