We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
Excel - Multiplying A Rate By Hours
chateauneufdupape
Posts: 520 Forumite
in Techie Stuff
I am trying to set up a spreadshet that calculates the hours worked and then multiply them by a rate. Cell D2 is the start time, cell D3 is the finish time, cell D4 is the hours worked (D3-D2), cell D5 is the rate and cell D6 is the total cost (D4*D5). However, whilst cell D4 gives the correct answer, D6 does not. How do i get around this?
0
Comments
-
Not too sure what your after but i tried to follow your post and made this basic example which seems to work ok. I just formatted the cells as a decimal number and the rate and total as currency. Hope it helps or let me know if im way of target lol.
Example Here0 -
I had this problem a while ago - a search for employee wages excel brought up a few results which may be of use.
0 -
It seems to be related to fomatting, Cell D2 and D3 were in h:m format. I solved this using D4 "=HOUR(D3-D2)"
Thanks for the thoughts0 -
It seems to be related to fomatting, Cell D2 and D3 were in h:m format. I solved this using D4 "=HOUR(D3-D2)"
I suspect that's not what you want, you're effectively rounding down the time worked to the nearest whole hour.
Safer to use: =24*(D3-D2)
StompaStompa0 -
Probably not related, but a useful piece of info to know: When adding times in Excel, you can't use one of the pre-defined time formats on your total cell - you have to use Custom then specify [h]:mm to prevent the hours rolling over at 24 hours and starting again.chateauneufdupape wrote:Cell D2 and D3 were in h:m format.0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 352.5K Banking & Borrowing
- 253.7K Reduce Debt & Boost Income
- 454.5K Spending & Discounts
- 245.5K Work, Benefits & Business
- 601.5K Mortgages, Homes & Bills
- 177.6K Life & Family
- 259.5K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 37.7K Read-Only Boards