scrappinghappy
Pearl Clutcher
“I’m late, I’m late for a very important date. No time to say “Hello.” Goodbye. I’m late...."
Posts: 4,306
Jun 26, 2014 19:30:06 GMT
|
Post by scrappinghappy on Jun 30, 2016 22:20:46 GMT
I'd greatly appreciate it if any google sheet experts can help me.
The company I work for uses a google sheet to track billable hours for me. Almost all my time is less than 20 hours a week except when I work extra a couple times every other month and it pushes it over 24 hours.
Here's the formula I use to calculate my paycheck but it doesn't work when it's over 24 hours. Then it only counts the minutes and hours over 24.
Entries may look like this.
4:50 3:30 6:10 5:50 4:10 Totals: 24:30:00 Paycheck: Should be $4900 except here I am getting a returned value of $100 (calculated using =(HOUR(C11)+(MINUTE(C11)/60))*200)
I get the same error when I try in excel, fwiw. What am I doing wrong and how do I fix it?
|
|
|
Post by jennyap on Jun 30, 2016 22:27:23 GMT
You need to add day X 24 into your calc.
|
|
scrappinghappy
Pearl Clutcher
“I’m late, I’m late for a very important date. No time to say “Hello.” Goodbye. I’m late...."
Posts: 4,306
Jun 26, 2014 19:30:06 GMT
|
Post by scrappinghappy on Jun 30, 2016 22:43:01 GMT
You need to add day X 24 into your calc. I feel so stupid but how do I do that?
|
|
|
Post by jennyap on Jun 30, 2016 22:50:08 GMT
Not at all stupid, I don't know either! I just know the hour function has a maximum value of 23.
Don't know about Google sheets, can't figure it out at all.
But in excel, make sure your number format for C11 is [hh]:mm
Then your existing formula actually ought to work. Maybe...
|
|
|
Post by jennyap on Jun 30, 2016 23:02:16 GMT
Ok, for Google sheets try =((INT(C11)*24)+HOUR(C11)+(MINUTE(C11)/60))*200)
Might work in excel too
|
|
|
Post by Darcy Collins on Jun 30, 2016 23:41:25 GMT
Well the easy way to do it is just copy your formula in every row in a new column after every day worked, than sum up the amount owed for each day. Presumably you won't work any particular day over 23 hours I find date formulas can be a PITA.
|
|
scrappinghappy
Pearl Clutcher
“I’m late, I’m late for a very important date. No time to say “Hello.” Goodbye. I’m late...."
Posts: 4,306
Jun 26, 2014 19:30:06 GMT
|
Post by scrappinghappy on Jul 1, 2016 13:56:30 GMT
Ok, for Google sheets try =((INT(C11)*24)+HOUR(C11)+(MINUTE(C11)/60))*200) Might work in excel too Worked in both if I stay under 48 hours but I doubt I am EVER going to work 48 hours in a week LOL. Thanks
|
|