ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Timesheet Date Calculation (https://www.excelbanter.com/excel-worksheet-functions/40429-timesheet-date-calculation.html)

HRMSN

Timesheet Date Calculation
 
In designing a time sheet, I need help with a function that will calculate
two weeks worth of dates after the person puts the first date of that pay
period into the timesheet. The catch is, I need the function to no put
nothing in each spot if that first date is not entered. Can anyone help? I
believe it will be an IF function but as of yet I have been unable to make it
work.

Bob Phillips

=IF($A$1="","",A1+1)

in B1.

If you need to ignore weekends, use

=IF($A$1="","",A1+1+(WEEKDAY(A1)=6)*2)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"HRMSN" wrote in message
...
In designing a time sheet, I need help with a function that will calculate
two weeks worth of dates after the person puts the first date of that pay
period into the timesheet. The catch is, I need the function to no put
nothing in each spot if that first date is not entered. Can anyone help?

I
believe it will be an IF function but as of yet I have been unable to make

it
work.





All times are GMT +1. The time now is 01:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com