+ Reply to Thread
Results 1 to 5 of 5

IF(AND function) help with multiple conditions

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    Tampa
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    63

    IF(AND function) help with multiple conditions

    I am requesting some excel help from someone much smarter than I when it comes to excel IF(AND formulas).
    (I already did a search before I posted my problem, and couldn't find what I was looking for.)

    Here is my scenario:

    A B C
    1 (IF(AND fx) -7.5 -7.7
    2 (IF(AND fx) -35.5 -14.4

    The IF(AND fx) I want in column A

    The argument I am trying to make for cell A1 is if C1 is less than -7, and B1 is greater than -10 but less than 10, then I would like a 1 to display in A1. If one or both of these conditions are not met, I would like for A1 to be blank.

    In the example above, the IF(AND fx) should return a "1" in cell A1, and " " in cell B1.

    Thanks in advance for your help!

  2. #2
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: IF(AND function) help with multiple conditions

    Hi brose99,

    Try this formula...

    =IF(AND(C1<-7,AND(B1>-10,B1<10)),1,"")

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,983

    Re: IF(AND function) help with multiple conditions

    Try this: =if(And(C1<-7,B1>-10,B1<10),1,"")

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Contributor
    Join Date
    11-05-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    229

    Re: IF(AND function) help with multiple conditions

    Both the solutions given will work fine.

    If you want some reading material on IF and AND formulas, visit this site.
    Taming the Excel dragon... www.TheExcelphile.com

  5. #5
    Registered User
    Join Date
    11-15-2012
    Location
    Tampa
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    63

    Re: IF(AND function) help with multiple conditions

    They both work! Thank you for the help and the quick replies!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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