+ Reply to Thread
Results 1 to 6 of 6

Formula to calculate two diferent rates using same cells

  1. #1
    Registered User
    Join Date
    12-17-2015
    Location
    Minnesota
    MS-Off Ver
    Office 2010
    Posts
    6

    Unhappy Formula to calculate two diferent rates using same cells

    I collect the number of hours each day a person uses my services. The number of hours each day is put in a row of cells. At the end of the month I have a cell at the end of the row that calculates the number of hours over the whole row. The next part I don’t know how to do: Once the total hours are calculated, I need to divide them by 6, that represents the number of hours in a whole day. For example, there are 62.5 hours in one month divide by 6 gives me 10.42. There were 10, 6 hour days and 2.5 hours left over that calculate to the .42. I need to charge the 10 days at one rate and the 2.5 hours ( or .42) another rate. Is there a way I can get the 62.5 hours into two separate cells, one that comes up with the answer 10 and another cell that comes up with the answer 2.5? Or is there another way to do it? I don’t have a clue how to get this done. Any advice would be great.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,508

    Re: Formula to calculate two diferent rates using same cells

    try

    =(INT(A1/6)*Rate1+MOD(A1/6)*Rate2)

    A1 is the total hours

    Result is total charge

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,484

    Re: Formula to calculate two diferent rates using same cells

    Could you please attach the workbook here?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: Formula to calculate two diferent rates using same cells

    Try these:

    =INT(total_hours/6)

    to give 10 in your example, and:

    =ROUND(MOD(total_hours/6,1),2)

    to give you 0.42 in your example. Replace total_hours with the appropriate cell reference.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    12-17-2015
    Location
    Minnesota
    MS-Off Ver
    Office 2010
    Posts
    6

    Re: Formula to calculate two diferent rates using same cells

    Thank you for your willingness to help. This is my first post and I can't see any way to attach a file. The other formulas don't seem to work.

  6. #6
    Registered User
    Join Date
    12-17-2015
    Location
    Minnesota
    MS-Off Ver
    Office 2010
    Posts
    6

    Re: Formula to calculate two diferent rates using same cells

    I played around with the formulas more and got it to work. Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 05-22-2014, 05:33 PM
  2. Formula for calculate 3 different rates in only one cell
    By tariqnaz2005 in forum Excel General
    Replies: 5
    Last Post: 03-11-2014, 07:13 AM
  3. Replies: 1
    Last Post: 11-12-2013, 03:22 PM
  4. [SOLVED] Need formula to calculate total of different rates depending on count
    By laura2114 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-07-2012, 05:32 PM
  5. Replies: 3
    Last Post: 10-02-2012, 03:30 PM
  6. how do i calculate pay from given hours and pay rates?
    By ejm014 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-27-2005, 09:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1