+ Reply to Thread
Results 1 to 7 of 7

if function for 5 conditions

  1. #1
    Registered User
    Join Date
    08-25-2010
    Location
    london
    MS-Off Ver
    Excel 2013
    Posts
    85

    if function for 5 conditions

    =IF($N4<=$B$12,$B$10,IF($N4<$C$12,$B$10,IF($N4>=$C$12,$C$10,IF($N4<$D$12,$C$10,IF($N4>=$D$12,$D$10)))))

    I cant seem to get if function to work for 5 conditions, can some help urgently?

    Thanks

    Sansan

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: if function for 5 conditions

    It's tough to comprehend the requirement by going through the formula, can you please post a sample template in excel format with an expected outcome in it?

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

    Re: if function for 5 conditions

    as cbatrody noted it is difficult to understand your formula without seeing how you are using it.
    for example...
    =IF($N4<=$B$12,$B$10,IF($N4<$C$12,$B$10,IF($N4>=$C$12,$C$10,IF($N4<$D$12,$C$10,IF($N4>=$D$12,$D$10)))))
    what happens if N4 is greater than B10 but still less than C12? It appears you may need an OR statement in the mix or maybe an AND statement or a lookup formula will work?
    A sample can go a long way to getting you the specific help you need.
    =IF(AND($N4<=$B$12,$N4<$C$12),$B$10,IF($N4>=$C$12,$C$10,IF($N4<$D$12,$C$10,IF($N4>=$D$12,$D$10))))) Maybe this last part, can be the simplified last portion that says =IF(AND($N4<=$B$12,$N4<$C$12),$B$10,IF($N4>=$C$12,$C$10,IF($N4<$D$12,$C$10,$D$10))) (untested)
    Again, without seeing the formula in use and the data it is hard to guess.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    08-25-2010
    Location
    london
    MS-Off Ver
    Excel 2013
    Posts
    85

    Re: if function for 5 conditions

    thanks, hope you can help :-)

    password "Increase2013"
    Attached Files Attached Files

  5. #5
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: if function for 5 conditions

    Hi,

    Try the following formula in B7:

    =INDEX(C3:H3,1,MATCH(A3,C3:H3,1))
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-25-2010
    Location
    london
    MS-Off Ver
    Excel 2013
    Posts
    85

    Re: if function for 5 conditions

    thanks Cbatrody, but if the amount is £100, then it should change to midpoint? can you help with that?

    Thanks

    Kind regards

    Sandy

  7. #7
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: if function for 5 conditions

    It does change to Mid Point when the amount is hundred, see the attached file.

+ 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. OR function with 3 conditions
    By TicklyTigger in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-09-2014, 11:40 AM
  2. [SOLVED] Satisfying 2 conditions using if function or other function
    By aparunkumar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-22-2013, 12:19 PM
  3. [SOLVED] If function which follows a few conditions
    By petelomax in forum Excel General
    Replies: 2
    Last Post: 05-30-2012, 10:44 AM
  4. [SOLVED] Two Conditions Function
    By Karthik in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 07:05 PM
  5. Two Conditions Function
    By Freshman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2005, 11:05 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