📨 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

Options
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?

Comments

  • meclive
    meclive Posts: 482 Forumite
    Part of the Furniture 100 Posts Combo Breaker
    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 Here
  • tigermatt
    tigermatt Posts: 1,925 Forumite
    1,000 Posts Combo Breaker
    I had this problem a while ago - a search for employee wages excel brought up a few results which may be of use. :)
  • 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 thoughts
  • Stompa
    Stompa Posts: 8,375 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    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)

    Stompa
    Stompa
  • tigermatt
    tigermatt Posts: 1,925 Forumite
    1,000 Posts Combo Breaker
    Cell D2 and D3 were in h:m format.
    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.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 351.1K Banking & Borrowing
  • 253.2K Reduce Debt & Boost Income
  • 453.6K Spending & Discounts
  • 244.1K Work, Benefits & Business
  • 599.1K Mortgages, Homes & Bills
  • 177K Life & Family
  • 257.4K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.