+ Reply to Thread
Results 1 to 4 of 4

Different formula for different range based on cell value input

  1. #1
    Registered User
    Join Date
    11-09-2011
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    2

    Angry Different formula for different range based on cell value input

    Good morning,
    I have another complicated issue that I would like to resolve with a simple formula. I work on projects that have a value from anywhere between $200.00 to $10,000,000.00. For my work I have a certain dollar amount that I use based on 8 different ranges that get me different results based on what value I place on the project.

    My information is:
    Value Fee
    1.00 - 500.00 - Initial Fee = 30.00 = This is the end Fee!
    501.00 - 2K - Initial Fee = 30.00 for first 500 then 1.25 for each 100 after
    2,001.00 - 25K - Initial Fee = 70.00 for first 2K then 5.00 for each 1K after
    25,001.00 - 50K - Initial Fee = 400.00 first 25K then 8.00 for each 1K after
    50,001.00 - 100K - Initial Fee = 650.00 for first 50K then 7.00 for each 1K after
    101,001.00 - 500K - Initial Fee = 1,000.00 for first 100K then 5 for each 1K after
    500,001.00 - 1Mil - Initial Fee = 3,200.00 for first 500K then 2.50 for each 1K after
    1,000,001.00 - 10Mil - Initial Fee = 5,500.00 for first 1Mil then 1.50 for each 1K after

    What I want to do is to type in (or link it to the actual project) the value (let's say 4,003,000.00) and give me the value based on the above information.

    I see that I would need to take X (value) minus the amount for the first chunk, divided by the "per unit" and then multiple THAT number by the "fee" AND THEN add the initial fee.

    Thoughts on how best to accomplish this in one "catch all" formula?

    Thank you so much!!

  2. #2
    Forum Contributor
    Join Date
    12-15-2019
    Location
    Not here
    MS-Off Ver
    2010
    Posts
    257

    Re: Different formula for different range based on cell value input

    I suggest you attach a sample file with expected results.

    Thanks

  3. #3
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Different formula for different range based on cell value input

    =(L1-VLOOKUP(L1,$A$1:$C$8,1))*VLOOKUP(L1,$A$1:$C$8,2)+VLOOKUP(L1,$A$1:$C$8,3)
    smth is wrong in logic
    Attached Files Attached Files

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,720

    Re: Different formula for different range based on cell value input

    This a classic tiered fee problem. This type of problem needs a table. Then you use the table to look up which amounts to apply. See attached. The "Per" value for the first tier is 1 to avoid a divide-by-zero error.

    A shows your specs
    B:F shows the table based on your specs
    H:I shows sample results

    The formula is a little complicated but the benefit is that it's trivial to make a change if your fee table changes. You don't have to ever change a formula.
    Attached Files Attached Files
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. [SOLVED] format color into range of cells based on specific cell input
    By Juli in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 01-01-2018, 10:18 AM
  2. [SOLVED] Delete specific range cell data based on user input
    By terriertrip in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-06-2017, 07:57 PM
  3. [SOLVED] Formula Based on YES/No Input in another cell
    By robertguy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-04-2014, 09:33 AM
  4. [SOLVED] Changing copy range based on cell input.
    By randomguy1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2013, 08:59 PM
  5. [SOLVED] how to use the range in a cell as an input to a formula
    By reddy14 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2013, 09:06 PM
  6. Can name range display value based on the input of specific cell?
    By rusoo7 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-24-2010, 11:17 AM
  7. Select cell from range based on input in excel xp
    By dingy101 in forum Excel General
    Replies: 3
    Last Post: 11-19-2005, 08: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