I'm working on a time sheets form process, and was wondering if it's possible to auto-populate the hours in the day as a default setting? It's for a two week period and we would always want weekends left blank. something like below:
I'm working on a time sheets form process, and was wondering if it's possible to auto-populate the hours in the day as a default setting? It's for a two week period and we would always want weekends left blank. something like below:
Yes, almost the exact same formula:
=IF(WEEKDAY(INDEX(Table.Date, ROW()), 2)<5, .5, "")
The 2 in the Weekday function starts the count on Monday=1. Then the IF statement checks to see if the value returned from weekday is less than 5 (first four days of the week Monday-Thursday) and if it is, inserts .5, otherwise, input the empty string "".
Hi Catherine,
You can use following calculation formula in hour field
=IF(WEEKDAY(INDEX(Table.Date, ROW()), 2)<6, 7, "")
which firstly calculate the day of the week for date in same row (starting Monday), then populate the hour field based on the result.
Thanks a bunch! the other column i want to calculate is for flex time, it's just 0.5 each week day except fridays, is this possible to calculate with a similar formula? Mon-Thurs would need the 0.5 in another column
Yes, almost the exact same formula:
=IF(WEEKDAY(INDEX(Table.Date, ROW()), 2)<5, .5, "")
The 2 in the Weekday function starts the count on Monday=1. Then the IF statement checks to see if the value returned from weekday is less than 5 (first four days of the week Monday-Thursday) and if it is, inserts .5, otherwise, input the empty string "".