+ Reply to Thread
Results 1 to 6 of 6

If <$ then %, if >$$ then higher % formula?

Hybrid View

  1. #1
    Registered User
    Join Date
    05-08-2009
    Location
    Normal, IL
    MS-Off Ver
    Excel 2016
    Posts
    30

    If <$ then %, if >$$ then higher % formula?

    Hi,

    I have a done a little searching and could not figure this one out.

    I have a total cell that needs to have a payment breakdown figured below it.

    If C18 is the cell total and rows 20:25 show the payment breakdown, this is what I am trying to get to work in formula:

    IF C18 <$5000 display 50% in C21 and 50% in the C22, and do not show anything in row 23 ("").
    IF C18 $5001-$30000 display 20% in C21, 30% in C22, 50% in C23
    IF C18 >$30001+ display 20% in C21, 30% in C22, 30% in C23, 20% in C24

    Also, I would like to have the words Deposit, Start, Mid Pay, Finish, show up in respect to the percentages that are to be paid and hide the ones not being used. If it was <$5000 then only deposit and finish would be displayed, $5k-$30k would show Deposit, Start, Finish, etc.

    How do I have the multiple ranges with if then statements to change based on what the initial value is?

    Thanks!
    Attached Images Attached Images

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: If <$ then %, if >$$ then higher % formula?

    Classic use of approximate MATCH in a lookup function.

    C21 =INDEX({0.5,0.2,0.2}, MATCH($C$18, {0,5000,30000}, 1))
    C22 =INDEX({0.5,0.3,0.3}, MATCH($C$18, {0,5000,30000}, 1))
    C23 =INDEX({"",0.5,0.3}, MATCH($C$18, {0,5000,30000}, 1))
    C24 =INDEX({"","",0.2}, MATCH($C$18, {0,5000,30000}, 1))
    (Then format cells as % instead of pulling raw numbers).
    You could nest the INDEX and MATCH {arrays} in a separate lookup table if you wanted to get fancy with breakdown of percentages vs. payments or whatever.

    Then for the text descriptors, I'd just run it off CHOOSE like so:
    B21 ="Deposit"
    B22 =CHOOSE(COUNT($C$20:$C$23), "Error", "Finish", "Start", "Start")
    B23 =CHOOSE(COUNT($C$21:$C$24), "", "", "Finish", "Mid-Pay")
    B24 =CHOOSE(COUNT($C$21:$C$24), "", "", "", "Finish")
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  3. #3
    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
    53,048

    Re: If <$ then %, if >$$ then higher % formula?

    Try this...
    C21=IF($C$18 >30001,20%,if($C$18>5000,20%,50%))
    C22=IF($C$18 >30001,30%,if($C$18>5000,30%,50%))
    C23=IF($C$18 >30001,30%,if($C$18>5000,50%,""))
    C24=IF($C$18 >30001,20%,if($C$18>5000,"",50%))

    You may need to work with the tow "" options if you need to apply % to values elsewhere
    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

  4. #4
    Registered User
    Join Date
    05-08-2009
    Location
    Normal, IL
    MS-Off Ver
    Excel 2016
    Posts
    30

    Re: If <$ then %, if >$$ then higher % formula?

    I may have described that wrong, B21, B22, B23, B24 need to display the 20%, 30%, 30%, 20%, 50%, etc. So I will put those formulas in the B column.

    Column C needs to display the value of that percentage, so if the total was $1000 then 20% would be $200 that would be displayed.

    Thanks for the replies!
    Last edited by LKM Kevin; 08-15-2019 at 04:16 PM.

  5. #5
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: If <$ then %, if >$$ then higher % formula?

    Quote Originally Posted by LKM Kevin View Post
    I may have described that wrong....
    Nah, what happened was since you didn't bother to post an attachment for me to work with I worked in a fresh sheet, and was offset a column to the right compared to your example.

    Just shift it over one.

  6. #6
    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
    53,048

    Re: If <$ then %, if >$$ then higher % formula?

    O that part is fairly simple...
    =if(B21="","",$C$18*B21)

    Thanks for the feedback, too

+ 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. Formula to Calculate by Zones and get the higher value
    By Junruner in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-03-2014, 05:07 PM
  2. [SOLVED] IF formula solution if B1 higher than A1 then B1
    By timothy goodwin in forum Excel General
    Replies: 13
    Last Post: 05-04-2012, 10:26 AM
  3. [SOLVED] Need formula for higher Interest rate
    By raw_geek in forum Excel General
    Replies: 3
    Last Post: 04-16-2012, 06:05 PM
  4. Formula: Reporting first value higher than...
    By sjlabrie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-22-2011, 10:23 PM
  5. Replies: 2
    Last Post: 05-31-2010, 03:23 PM
  6. Replies: 7
    Last Post: 03-22-2010, 05:22 PM
  7. Formula to Prevent a higher % to be entered
    By Preatorian in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-02-2009, 11:14 PM

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