Welcome to the Smartsheet Forum Archives
The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, please Visit the Current Forums.
Separating weekdays from weekends
Hi everyone,
this is probably something very simple, but I still struggle, hope you can help.
I have a large timesheet with one raw per day, every day of the year.
The contractors will get paid higher rates on weekends, compared to work days. Initially I thought of putting an extra checkbox "weekend" column next to the date, but this is a manual solution.
Is there a way of building a formula that automatically checks if the date column is a workday or a weekend and applies different rates to the dollar calculations?
Thank you!
Comments
-
Hi Michael,
Dates are displayed in german time format. The work in the first row was done on Friday, in the second on Saturday.
The formula to check wich rate to take is in the cells of column "Total":
=IF(OR(WEEKDAY(Date1) = 1, WEEKDAY(Date1) = 7), Hours1 * $Activity$6, Hours1 * $Activity$5)
-
Danke schön, Dietrich, appreciate your help!
Best regards
Michael
-
Great solution, Dietrich! Thanks for sharing
-
Thank you Dietrich! This is going to be very useful to me in many ways in scheduling legal activities.
-
One question...what is the significance of the $ signs in the formua?
Thanks,
jerry
-
Jerry,
the $ is used in formulas to fix references!
In the example above the value "$Activity$6" says Smartsheet to take the value of Column "Activity" in the row "6". One can copy the formula and it will always reference to this cell. E.g. the formula would be "$Activity6" instead and you copy the formula down to the next row it would be automatically adapted to "$Activity7" and so one. This also works with columns.
There is an help article that describes the various use cases for this fixed and relative references in formulas: http://help.smartsheet.com/articles/775363-using-formulas
Scroll down to the paragraph:
Using Drag-Fill to Save Time
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives