+ Reply to Thread
Results 1 to 7 of 7

How to use "if" formula for multiple conditions

  1. #1
    Registered User
    Join Date
    04-06-2009
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    7

    Exclamation How to use "if" formula for multiple conditions

    Hi all

    I am trying to use if formula to satisfy 5 conditions, for example:
    in column D i have all different percentages, but if the percentage is equal or greater than 4, then I want to return the value 5 to column E,
    if it's equal or greater than 2 but smaller than 4, then column E should show up as 4,
    if it's between -1 and 2, but smaller than 2, then column E should show up as 3,
    if it's greater than -1 but smaller than -4, then column E should show up as 2,
    if it's equal or greater than -4, then column E should show up as 1,

    Any clue on how to satisfy these 5 conditions in 1 formula?

    Much appreciated!

    Harry

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: How to use "if" formula for multiple conditions

    Hello Harry,

    Is column D showing percentages or numbers?

    If it's the former try this formula in E2 copied down

    =MATCH(D2*100,{-9.9E+307,-4,-1,2,4})

    If it's the latter remove *100

  3. #3
    Registered User
    Join Date
    04-06-2009
    Location
    Auckland, New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    7

    Smile Re: How to use "if" formula for multiple conditions

    That's awesome! Problem solved.
    Thank you so much!

  4. #4
    Registered User
    Join Date
    06-10-2011
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: How to use "if" formula for multiple conditions

    I have a issue,

    I was palnning for the depreciation statment where I wanted to give 6 if nested functions but the same is not giving any result but showing as it cannot give any result.

    this is my formula,

    {=IF($P9=0,if(R$6-$O9<0,0,IF(R$6-$O9>365,365,R$6-$O9),IF(R$6<$P9,IF(R$6-$O9>365,365,R$6-$O9),0))}

    Where the P is the sale date coloumn,
    R6 is the date cell
    O6 is the date of the capitalisation,

    Can any one help me out in the same.
    Balaram.K.B
    Last edited by Balaram; 06-10-2011 at 01:31 AM. Reason: wanted to show the formula

  5. #5
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: How to use "if" formula for multiple conditions

    Hello and welcome to the forum,

    Please don't post question in other person's thread, but rather start a new thread and, if you feel this thread is relevant, you may link to it.

    abousetta

  6. #6
    Registered User
    Join Date
    06-29-2016
    Location
    not here!
    MS-Off Ver
    going to MAC
    Posts
    1

    Re: How to use "if" formula for multiple conditions

    Hello all...

    I am a power user of Excel for data, but am just starting to use conditional formatting at a new position. Trial and error with conditional formatting is a bit of a pain!

    I want to apply multiple conditional formatting rules to one cell....is that possible?

    b2 = a manually entered number
    c2 = sum of columns d2 - f2 that are each manually entered

    All the numbers in b2 and d2 - f2 could change multiple times as we forecast our plan. The ultimate goal is for a2 and b2 to equal. If they don't, I want one of two conditions to appear:
    1. c2<b2 (red font)
    2. c2>b2 (yellow highlight)

    What I can't figure out is how to insert multiple if statements with multiple conditional formatting options based on the results of the if statements into one conditional formatting rule.

    Is it possible to do?

    Thanks in advance!!!

    mult cond formats.jpg

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,609

    Re: How to use "if" formula for multiple conditions

    bumblebee24,
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Ben Van Johnson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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