Here is my problem (this is part of a timesheet): Cell B2 is custom formatted as [h]:mm with a formula of =((E2)/24).
If cell A2 contains a number, cell B2 divides that number to give me hours. Therefore, if A2 contains the number 8, B2 will look like 8:00.
Now for the problem part: my workplace always allows us to leave 2 hours early the day before a holiday break. What I would like to happen is if cell A2 contains an h (for holiday), I want the h to be counted as a 2 hour time period and appear as 2:00 in cell B2. If cell A2 contains a number, I want it to use the formula mentioned above.
The number that appears in cell B2 is calculated elsewhere in the spreadsheet to add up to an 8 hour day.
Using the formula: =COUNTIF(E2,"h")/24*2 gives the correct results if A2 contains an h but I dont know how to use both formulas together.
Thanks for your help,
Kirk
Bookmarks