+ Reply to Thread
Results 1 to 13 of 13

Formula that will change an amount based on a cell meeting certain thresholds

  1. #1
    Registered User
    Join Date
    01-02-2013
    Location
    Orem, UT
    MS-Off Ver
    Excel 2010
    Posts
    58

    Formula that will change an amount based on a cell meeting certain thresholds

    I have a spreadsheet that I'm working on and I need help with a formula in Cell M7. I have attached a copy of the spreadsheet for your viewing. In this Cell, I need it to automatically change based when Cell when Cell K4 meets certain thresholds. For example if K4 reaches $600, then M7 should reflect $600x1=$600 + O4 + Q4. If it reach $800 M7 should reflect $800x2=$1600 + O4 + Q4 and so on. I have broken down below what I would like M7 to reflect for each threshold.

    I have inputed the formula into the example spreadsheet I was trying to work with and it might give you an idea of what I'm trying to acomplish. Any help would be greatly appreciated.

    What I want Cell M7 to reflect as the amounts meet certain thresholds:
    (K4$600)x1=$600+O4+Q4
    (K4$800)x2=$1600+O4+Q4
    (K4$1000)x3.5=$3500+O4+Q4
    (K4$1200)x4=$4800+O4+Q4
    (K4$1400)x4.5=$6300+O4+Q4
    (K4$1600)x5=$8000+O4+Q4
    (K4$1800)x5.25=$9450+O4+Q4
    (K4$2000)x5.5=$11000+O4+Q4
    (K4$2200)x3.75=$8250+O4+Q4
    (K4$2400)x4=9600+O4+Q4

    Thank you ahead of time for any help!
    Semisi
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Formula that will change an amount based on a cell meeting certain thresholds

    What do you mean "reach $600"?
    How about $500?
    Quang PT

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

    Re: Formula that will change an amount based on a cell meeting certain thresholds

    I would suggest that you set up a little 2-column table somewhere like this:

    0 none
    600 1
    800 2
    1000 3.5
    1200 4
    1400 4.5
    1600 5
    1800 5.25
    2000 5.5
    2200 3.75
    2400 4

    Suppose you have this in cells V4 to W14. Then you could have this simpler formula in M7:

    =IFERROR(K4*VLOOKUP(K4,V4:W14,2)+O4+Q4,"You're fired")

    It is important to have some text in cell W4, as this is what triggers the error condition.

    Hope this helps.

    Pete

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Formula that will change an amount based on a cell meeting certain thresholds

    Your formula will be like this........

    Please Login or Register  to view this content.
    I hope it helps.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,459

    Re: Formula that will change an amount based on a cell meeting certain thresholds

    Or try this with LOOKUP:
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    01-02-2013
    Location
    Orem, UT
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: Formula that will change an amount based on a cell meeting certain thresholds

    Wow! Thank you for the help. I entered your formula into the cell, but the only thing I'm wondering if could be tweaked is, in between the different threshold amount it there a way to not contnue to sum up totals in between the different threshold amounts? Meaning the amount does not adjust for values in between the various thresholds in the formula you created.

  7. #7
    Registered User
    Join Date
    01-02-2013
    Location
    Orem, UT
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: Formula that will change an amount based on a cell meeting certain thresholds

    You formula works just fine. The only change I need is that the formula does NOT continue to sum up totals in between the various thresholds. Mean the next amount in not calculated until the next threshold is reached. Please let me know if you need further clarification.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Formula that will change an amount based on a cell meeting certain thresholds

    I see at least 3 different formulas suggested above. Which 1 did you use?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  9. #9
    Registered User
    Join Date
    01-02-2013
    Location
    Orem, UT
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: Formula that will change an amount based on a cell meeting certain thresholds

    I used bebo210999 and I also tried sktneer's formula. Both work perfectly, except for one little tweak I need if possible to do.

  10. #10
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Formula that will change an amount based on a cell meeting certain thresholds

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  11. #11
    Registered User
    Join Date
    01-02-2013
    Location
    Orem, UT
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: Formula that will change an amount based on a cell meeting certain thresholds

    I need to make a slight adjustment if its possible to do with a formula. The formula's that bebo210999 and sktneer provided is doing most of what I need the formula to do. The only tweak I need is I only want the formula to calculate the multiplier when the threshold has been met. See my example below.

    Whe the agent reachs $600 dollars in sales, then he receives the commission of $600 + O4 + Q4 and that's it. Any additional commissions generated into Cell M7 from $600 to the next threshold of $800 I do not want the formula to accumulate, I only want it to calculate when the next threshold has been met. However I still want Cells O4+Q4 to continue to accumulate.

    $1 - $599 No Calculation
    (K4$600)x1=$600+O4+Q4
    -
    $601 - $799 No calculation
    -
    (K4$800)x2=$1600+O4+Q4

    $801 - $999 No Calculation

    (K4$1000)x3.5=$3500+O4+Q4

  12. #12
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Formula that will change an amount based on a cell meeting certain thresholds

    Replace all logical tests for K4 i.e. K4>2400, K4>2200,K4>2000.........K4>600 with K4=2400, K4=2200,K4=2000.......K4=600 in the formula and see if it does what you want.

  13. #13
    Registered User
    Join Date
    01-02-2013
    Location
    Orem, UT
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: Formula that will change an amount based on a cell meeting certain thresholds

    I'll give that a shot. 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. Color code cell based on meeting condition
    By Lasers Reef in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-29-2013, 05:40 AM
  2. [SOLVED] Need help! Formula to determine cell amount based on Yes/No Validation
    By randisavage in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-04-2013, 04:23 AM
  3. Cell population based on meeting condition of another cell using macro.
    By Brungart in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-04-2013, 12:29 PM
  4. Auto Calculate Based on cell meeting a condition
    By thedeadzeds in forum Excel General
    Replies: 5
    Last Post: 03-09-2012, 04:27 AM
  5. Replies: 14
    Last Post: 09-11-2009, 08:50 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