+ Reply to Thread
Results 1 to 14 of 14

If when and formula

  1. #1
    Registered User
    Join Date
    05-23-2014
    Posts
    12

    If when and formula

    Hi All,

    I previously submitted a post with a very specific request for formula. I decided to break the procedure in half, as all of my rules will not fit in one calculation cell.

    What I have so far is attached.

    Now, I am looking for a formula that will round to a specific number if two other cells meet the conditions. My parameters are below.

    E9 is to = $1000000, ONLY IF B9= 75%, AND IF C9 is less than $1000000
    E9 is to = $1500000, ONLY IF B9= 70%, AND IF C9 is less than $1500000
    E9 is to = $2000000, ONLY IF B9= 65%, AND IF C9 is less than $2000000

    Both B9 and C9 are formulas, not sure if that makes a difference?

    Please help!
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: If when and formula

    Instead of using text, why not simply using decimals?

    =IF(C8<=1250000,0.8,IF(C8<=2000000,0.75,IF(C8<=2857100,0.7,IF(C8<=4615300,0.65))))

    Then the equation is as simple as C8*B9.


    Better yet, you can build a table to reference and make adjusting the parameters much much simpler. Also allows for a greater number of them.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,415

    Re: If when and formula

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


    but note: B9:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


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



    If you put the values in quotes they become text strings, not numeric percentages.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,690

    Re: If when and formula

    based on what you wrote AND what you posted, this will work...
    =IF(AND(B9="75%",C9<10000000),1000000,IF(AND(B9="70%",C9<1500000),1500000,IF(AND(B9="65%",C9<2000000),2000000,"")))
    or essentially the same but w/o the blank...
    =IF(AND(B9="75%",C9<10000000),1000000,IF(AND(B9="70%",C9<1500000),1500000,IF(AND(B9="65%",C9<2000000),2000000)))
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  5. #5
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: If when and formula

    TRy

    =IF(AND(B9*1=75%,C9<1000000),1000000,0)+IF(AND(B9*1=70%,C9<1500000),1500000,0)+IF(AND(B9*1=65%,C9<2000000),2000000,0)
    Click just below left if it helps, Boo?ath?

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,415

    Re: If when and formula

    I like that approach but you don't really need the IFs.
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS

  7. #7
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: If when and formula

    Thanks for the insight

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,415

    Re: If when and formula

    @Boopathiraha: and you. I wouldn't have thought of just summing the options till I saw your formula. Good to be able to build on one another's ideas!

  9. #9
    Registered User
    Join Date
    05-23-2014
    Posts
    12

    Re: If when and formula

    Quote Originally Posted by Sambo kid View Post
    based on what you wrote AND what you posted, this will work...
    =IF(AND(B9="75%",C9<10000000),1000000,IF(AND(B9="70%",C9<1500000),1500000,IF(AND(B9="65%",C9<2000000),2000000,"")))
    or essentially the same but w/o the blank...
    =IF(AND(B9="75%",C9<10000000),1000000,IF(AND(B9="70%",C9<1500000),1500000,IF(AND(B9="65%",C9<2000000),2000000)))


    Sambo, it does work, however, its rounding even when its not supposed to....

    e.g. when after improved is 1400000, it multiples 75% like it should, which gives the loan amount of 1050000. However the E9 cell that is to round only when multiplied by 75 AND the result is LESS THAN 1000000, so it should be staying as 1050000 because it is not LESS THAN 1000000...

  10. #10
    Registered User
    Join Date
    05-23-2014
    Posts
    12

    Re: If when and formula

    Quote Originally Posted by TMS View Post
    I like that approach but you don't really need the IFs.
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS

    When using this formula, it gives the same result as it did using Sambos, except when loan amount in 1050000, E9 becomes "0"

  11. #11
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,690

    Re: If when and formula

    I think your first post noted some very specific values. Based on your first post you wrote that if B9 is a very specific value (65%, 70% or 75%) AND C9 is below 1 million, or below 1.5 million or below 2 million, put the value of 1 million in cell E9 (or 1.5 million or 2 million respectively) in cell E9.
    So are you saying that you want a value between 1 million and 1.5 million to remain as the calculated value? And if so, same thing for values between 1.5 million and 2 million because that is different from what you wrote and what I gave you but is doable.

  12. #12
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,415

    Re: If when and formula

    I'm pretty sure my original formula did exactly what you said you wanted. However, in order to use real percentages, the formulae in the dependent cells needed to be amended too.

    See your example (updated)

    Regards, TMS
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    05-23-2014
    Posts
    12

    Re: If when and formula

    I know this is all types of confusing and complicated, but I started over, which is why I used this post and not the old question I posted.

    I ONLY NEED THE ROUNDING/NOT ROUNDING FORMULA.



    1. ONLY WHEN B9= 75% AND C9 is less than $1000000, E9 is to round up to $1000000 (answers between 1000000 to 1500000 are to be left as is and NOT rounded)

    2. ONLY WHEN B9= 70% AND C9 is less than $1500000, E9 is to round up to $1500000 (answers between 1500000 to 1999970 are to be left as is and NOT rounded)

    3. ONLY WHEN B9= 65% AND C9 is less than $2000000, E9 is to round up to $2000000 (answers between 2000000 and 2999945 are to be left as is and NOT rounded)
    |________________| |___________________| |_______________________|
    TRUE TRUE FOR THIS TO APPLY


    Each rule above only applies to that specific percentage. So, if the After improved value is 2857100, which multiplies at 70% per the rule, the maximum loan would be 1999970. It would NOT round to 2MM because the amount is not less than 1.5 and the rounding to 2MM rule only applies when using 65%, so the answer would stay 1999970.

    For instance:
    After Improved Value:$2,500,000
    Maximum Loan @70%: $1,750,000
    At 70%, it is to remain $1,750,000 because it is not less than 1500000





    The page I am going off of is explained like this:

    If After improved value is less than or equal to 1250000 then multipy it by 80%.
    If the after improved cost is greater than 1250000 but less than or equal to 2000000 multiply it by 75%. When it is multiplied by 75% and the result (max loan amount) is less than 1000000, round up to 1000000. If it is over, let it be.
    If the after improved cost is greater than 2000000 but less than or equal to 2857100 multiply it by 70%. When it is multiplied by 70% and the result is less than 1500000, round up to 1500000. If it is over, let it be.
    If the after improved cost is greater than 2857100 but less than or equal to 4615300 multiply it by 65%. When it is multiplied by 65% and the result is less than 2000000, round up to 2000000. If it is over, let it be.

  14. #14
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,415

    Re: If when and formula

    Maybe this then:

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



    Regards, TMS

+ 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. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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