time sheet help, format TIME and formula based on the actual time entered.
I have a few questions and hope anyone can help me with it. If you think I can be helped with macros please let me know and I’ll move my question over there.
I’m working with employee time cards, which I downloaded in excel from our program. From some reason, the values in column A and B cannot be changed to TIME format (in the ‘downloaded info’ sheet)*. The reason I need it to be time, is because I need another formula to show that if an employee clocked in after 9pm the time worked should return as 0. For ex, D2 should be 0.
Or, if the format can’t be changed, I could continue to work with the number the program give me (column C) and then add a separate formula that if the value in A2 is after 9pm, the hours worked should be 0 (it doesn’t necessarily have to change in column C, I could have it somewhere else, because In reality I’m working with 2 workbooks, one with the original info downloaded, and the second one which references all the times and I have the formulas there to calculate the pay.)
Not sure any of these are possible, but appreciate any feedback.
*I did a test (see sheet ‘test’) which I manually entered times, and then did Replace pm with space pm and that worked to change to TIME format (see sheet ‘test2’) but for the downloaded info (in the ‘downloaded info’ sheet) it’s not working.
Re: time sheet help, format TIME and formula based on the actual time entered.
thank you for your responses! Jose, yours worked perfect, thanks! John, yours works as well (and it does save a step) however the outcome of your formula is time, and the actual hours worked I need as a general number. Can you change that? Also, any input that after 9pm the hours worked should be 0?
Re: time sheet help, format TIME and formula based on the actual time entered.
2:17 (hh:mm) as a number 2.17 is nonsensical, especially if you SUM it.I'm trying to round it, not sum it.
=if(c2>=2,2,0)
will look at the other formula now
Re: time sheet help, format TIME and formula based on the actual time entered.
Originally Posted by bh mng
For after 9 pm start:
this worked perfect, you're amazing! but same issue as before, if I get a time value I can't round that number. Our guidelines for pay are a bit different as conventional workplaces that's why I need these type of equations.
When I'll have time I'll study exactly what you did there, as it is worth knowing it...
Bookmarks