Okay, this should probably be an easy answer but I seem to be having a brain block.
Example =(F142-G142)*24
my start time is 10am and end time is 3pm I know my hours worked aren't 7 it is 5 what am I missing?
Okay, this should probably be an easy answer but I seem to be having a brain block.
Example =(F142-G142)*24
my start time is 10am and end time is 3pm I know my hours worked aren't 7 it is 5 what am I missing?
The formula works fine. It must have something to do with your entries in F142 and G142.
ChemistB
My 2?
substitute commas with semi-colons if your region settings requires
Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)
Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble
What is in F142 and G142?
Should it be end time - start time?
=(G142-F142)*24
I get 5
HTH
Regards, Jeff
I have made a userform that returns a time value into the cells and those cells are formatted to the time value the reason for F142 and G142 is that is just where I happened to be when I thought that I would try to create this formula. Do you think it is the way it was set up in the userform? My first intention was to do the calculations within the form but I am a newbie to VBA, that would make seasoned users cringe by the sight of my codes :/ and when I do it the other way as Jeff has suggested I get a negative number. I have attached my workbook if that helps I was just trying to create the formula on the excel employee timesheet tab.
Please ignore the blue writing at the top of it when opening, I had asked a different question then decided to try a different direction which is where this question came.
Thank you for your help guys, I figured it out, just have to make sure the AM and PM is listed in the userform. Maybe I should use military time instead =) Thanks again!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks