+ Reply to Thread
Results 1 to 6 of 6

total cost based on a value that falls within specific value

  1. #1
    Registered User
    Join Date
    04-02-2020
    Location
    Oregon US
    MS-Off Ver
    Office 365 Business
    Posts
    9

    total cost based on a value that falls within specific value

    I need help creating a formula that will return the total cost of an item based on a specific valuation.

    I think part of it is a VLOOKUP, but I am getting a REF error.

    I am also not sure, how to write the next steps of the formula.

    I have included notes in the attached excel file to help explain what I need to do.
    Attached Files Attached Files
    Last edited by Pepe Le Mokko; 04-24-2020 at 05:12 AM. Reason: Shortned title. please keep to the essentials

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Help with formula for total cost based on a value that falls within specific value

    Okay, I think I know what you are trying to do.
    For the first part, you're trying to return from column E (4) instead of D (3) so modify the base equation
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then you want to add the additional amount per 1000 from Column F. That would be Q3 minus the minimum (i.e. 25000 in this case) * Col F
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    So
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Not sure what rows 17-22 are for or if there are any other fees.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    04-02-2020
    Location
    Oregon US
    MS-Off Ver
    Office 365 Business
    Posts
    9

    Re: Help with formula for total cost based on a value that falls within specific value

    Thank you quick response, I really appreciate your help.

    Unfortunately, your formula did not return the correct result.

    I have updated the file to show what the permit costs would be based on the current valuation. Your results were off by $164.00.

    Lines 17 - 22 are the permit costs for another city. I have to use a similar formula for each city where we have projects. I am hoping that once I have a formula, that I will be able to tweak it slightly to work for each city or county in which we have a project.

    Ultimately, I would like these results to report values back to the estimate workbook for our project managers, but that can wait for now.
    Attached Files Attached Files

  4. #4
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Help with formula for total cost based on a value that falls within specific value

    so, perhaps:

    =SUM($Q$3,($Q$3-(LOOKUP($Q$3,$B$7:$B$10)-1))/1000*LOOKUP($Q$3,$B$7:$B$10,$F$7:$F$10),LOOKUP($Q$3,$B$7:$B$10,$L$7:$L$10),$M$12)

    note your expected result is out by 50c (J12 should be 115.5 rather than 115)

  5. #5
    Registered User
    Join Date
    04-02-2020
    Location
    Oregon US
    MS-Off Ver
    Office 365 Business
    Posts
    9

    Re: Help with formula for total cost based on a value that falls within specific value

    We are on the right track. Thank you.

    However, there is an error, which is returning the incorrect total with permit costs.

    The total job cost should be $126.75 less.

    In cell O7, The value shown is $40,798.17 on a $40,000 valuation.

    The total permit costs are only $671.42, which means the total valuation should be $40,671.42.

    I have uploaded the updated document this reply,

    Thank you again for all your help.
    Attached Files Attached Files

  6. #6
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Help with formula for total cost based on a value that falls within specific value

    the difference now is the fact that the incremental value has been added to column G, and thus now included in K, whereas previously it was not being calculated

    given above it follows that the previous formula is going to double count this element as it is calculating the value now being stored in G, and adding this to value in K which is inclusive of G

    so, simply, remove the incremental calculation... the below would give you the aggregate of the base + permit total w/o documents

    =SUM($P$3,LOOKUP($P$3,$B$7:$B$10,$K$7:$K$10),$L$11)

    I am still dubious about the pages element as it's not clear to me how that is tracked so, for now, so left as reference to $L$11
    it doesn't seem practical for an end-user to be entering this value into whichever of these matrices {and bands} is relative to the base valuation
    Last edited by XLent; 04-24-2020 at 03:52 AM. Reason: reworded

+ 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. Calc total cost based on room rates
    By Rachelle in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-05-2015, 12:41 PM
  2. Replies: 1
    Last Post: 06-10-2014, 10:43 PM
  3. Cost total based off of selection on drop-down menu
    By dreamsteve in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-21-2014, 05:12 PM
  4. [SOLVED] Extract value or sum total based on month criteria that falls within Data Range
    By Mysore in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-02-2013, 11:31 PM
  5. [SOLVED] Outputing engineering cost based on total cost of project. Looking for help with matching
    By cadamhill in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-17-2012, 09:31 PM
  6. Replies: 3
    Last Post: 03-16-2010, 01:26 PM
  7. Formula For Total Cost of Increasing Item Cost
    By dwax in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-05-2009, 01:10 PM

Tags for this Thread

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