+ Reply to Thread
Results 1 to 5 of 5

Problem Using IFS Function

  1. #1
    Registered User
    Join Date
    04-30-2020
    Location
    Conroe, Texas
    MS-Off Ver
    Office 365
    Posts
    3

    Problem Using IFS Function

    Good Afternoon All, I've got a problem and I'm hoping you can help.

    I'm developing an estimating template for my business, and our customer agreement has multiple rates.

    ie. Hourly Rate = $10/hr
    Daily Rate = 20 hours = $200
    Weekly Rate = 6 days = 120 hours = $1200
    Monthly Rate = 3.5 weeks = 21 days = 420 hours = $4200

    When inputting estimated time we'll always use hours. So if we plan on it taking 1 week, we would use 168 hours.

    I'm tying to figure out a formula that would allow me to bill according to those parameters, while keeping in mind that it won't always be as easy as a full day, week, month etc.

    For example if we worked 36 hours we would need to bill 1 day at the daily rate and then 12 hours at the hourly rate.

    Hope I'm making some sense, and I'm hoping here someone has some insight because I've tried messing with it for 2 days now and I'm still not having any luck.

    Thank you.

    EDIT: I'm adding the file as well. The equipment section I'm messing with starts on line 150.

    ROW 152 is an example of where I'm trying to figure out the right formula. Based on 192 hours I need it to calculate using 1 week and 1 day in M152. N152 is what it would come out to based on manual calculations.
    Last edited by scott4nier; 05-02-2020 at 01:25 PM.

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Selecting Correct Function / Formulas - Multiple Rates in a Range

    I am struggling to get my head around your problem. I don't understand the 20 hour per day assumption. Does it include a labour hours for a crew?

    I can understand how you get the result in N152, but the rate is the same for the week and the day, so there appears to be no difference between a weekly and daily rate.

    I don't understand why you enter the total elapsed hours for a job instead of the days or hours worked in the units used column. For example, the 192 that has been entered is presumably one full week (say, Mon to Sat) plus one day, but what if it was two lots of Mon to Wed plus two days. This is 8 days = 192 hours. I can't envisage a formula which could calculate this correctly!

    Clearly, I know nothing about your business, but I think you need more detail to work with than just the number of days multiplied the number of hours in the day.

    Regards, David

  3. #3
    Registered User
    Join Date
    04-30-2020
    Location
    Conroe, Texas
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Selecting Correct Function / Formulas - Multiple Rates in a Range

    Quote Originally Posted by David A Coop View Post
    I am struggling to get my head around your problem. I don't understand the 20 hour per day assumption. Does it include a labour hours for a crew?
    No, this is for equipment only. Our contract is set up so that we can only bill equipment for 20 hours every 24 hours, 6 days every week (at 20hrs per day) and 3.5 weeks per month, using the previous constraints.

    Quote Originally Posted by David A Coop View Post
    I can understand how you get the result in N152, but the rate is the same for the week and the day, so there appears to be no difference between a weekly and daily rate.
    This was a crude attempt. I've been working with different IFS situations, and some IF/AND but I'm struggling to come up with what I need.

    Quote Originally Posted by David A Coop View Post
    I don't understand why you enter the total elapsed hours for a job instead of the days or hours worked in the units used column. For example, the 192 that has been entered is presumably one full week (say, Mon to Sat) plus one day, but what if it was two lots of Mon to Wed plus two days. This is 8 days = 192 hours. I can't envisage a formula which could calculate this correctly!
    Ideally what we would input in that units column would be overall project duration based on our gantt chart. If it was to last 11 days for example or 264 hours. I would need it to calculate the first week at 120 hours and then second week at 100 hours so basically 220 x the equipment rate.

    It gets more complicated for me when it's a monthly charge or more. The struggle is trying to come up with a way for it to segregate what is charged at the monthly rate, the weekly rate and the daily rate.

  4. #4
    Registered User
    Join Date
    04-30-2020
    Location
    Conroe, Texas
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Selecting Correct Function / Formulas - Multiple Rates in a Range

    deleted - figured out what my issue was with this particular question
    Last edited by scott4nier; 05-02-2020 at 02:35 PM.

  5. #5
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Selecting Correct Function / Formulas - Multiple Rates in a Range

    I note that you seem to have solved your issue, so won't pursue it further.

    Now that I understand what's happening, I would divide the 192 hours by 168, and pick up the integer to charge the weekly rate and the remainder to charge the daily rate. That is quite simple. Something like this =(INT(E152/168)*120+(MOD(E152/168,1)*7)*20)*K152 - you would need to adjust when you have a reference point for the different rates.

    I have no idea how I would deal with the monthly issue unless you assumed that all months have 30 days.

    Please take the time to mark your thread as closed if you no longer require help.

    Regards,

    David
    Last edited by David A Coop; 05-03-2020 at 02:48 AM.

+ 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. Spreadsheet not selecting correct data
    By David.Abbott555 in forum Excel General
    Replies: 16
    Last Post: 08-21-2019, 09:53 AM
  2. [SOLVED] Selecting Correct Data from file
    By simpauw in forum Excel General
    Replies: 3
    Last Post: 03-08-2019, 11:34 AM
  3. Selecting correct worksheet tab at end of VBA routine
    By Aqua_Paul in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2018, 08:26 AM
  4. Vlookup not selecting the correct cell
    By nathandavies9 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-29-2017, 11:32 AM
  5. Selecting the Correct Formula
    By vincywoman1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-11-2014, 01:40 AM
  6. selecting first correct argument in if statement
    By gss in forum Excel General
    Replies: 4
    Last Post: 06-09-2009, 02:27 AM
  7. Replies: 3
    Last Post: 05-17-2008, 05:25 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