Return last workday
Hi,
I'm trying to create a report that will display the items for the previous work day. I initially tried creating a helper column with the following formula =IF(Date@row = TODAY(-1), 1, 0) which works great for Tuesday through Friday but on Mondays, it returns for Sunday. Is there a way to have it return the last weekday rather than the weekends?
Best Answers
-
@Ryan Nix, try this formula in a 'Previous Workday' column (formatted as a Date column):
=WORKDAY(Date@row, -1)
Then you could sort your report in chronological order, choice of date column?
-
You can combine @Marta Lewis's solution with your current formula.
=IF(Date@row = WORKDAY(Date@row, -1), 1, 0)
Answers
-
@Ryan Nix, try this formula in a 'Previous Workday' column (formatted as a Date column):
=WORKDAY(Date@row, -1)
Then you could sort your report in chronological order, choice of date column?
-
Unfortunately we're trying to only display a report for the previous days specifically so we can have it on the dashboard and have it compared to today's report in separate widget
-
You can combine @Marta Lewis's solution with your current formula.
=IF(Date@row = WORKDAY(Date@row, -1), 1, 0)
-
Ahh that works out haha - thank you @Marta Lewis and @Paul Newcome !
-
Happy to help. 👍️
Please don't forget to mark the most appropriate response(s) as "helpful" so that others searching for a similar solution can know that one may be found here.
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 58 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives