+ Reply to Thread
Results 1 to 3 of 3

Can IF, AND, and OR forumulas be combined?

Hybrid View

  1. #1
    Registered User
    Join Date
    11-02-2008
    Location
    California
    Posts
    1

    Can IF, AND, and OR forumulas be combined?

    I would like to be able to do the following in an Excel spreadsheet in a single cell:

    =IF(AND(D7="U",D13-D6>=3.1),"NM","X")
    or
    =IF(AND(D7="P",D13-D6>=15.1),"NM","X")
    or
    =IF(AND(D7="R",D13-D6>=30.1),"NM","X")
    or
    =IF(AND(D7="CU<24",D13-D6>=3.1),"NM","X")
    or
    =IF(AND(D7="CU>24",D13-D6>=1.1),"NM","X")

    Is it possible to combine these conditions for a single cell? Also, I only want the "X" to populate if D7="specific letter" AND D13-D6=3.1 is not true. If D7 does not equal the specific letter, then I don't want the "X" to populate.

    Cross-Post to: http://www.mrexcel.com/forum/showthread.php?t=350799

    Thanks
    Last edited by coast331; 11-02-2008 at 05:31 PM. Reason: Added Cross-Post URL

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Welcome to the forum.

    Not sure what you mean, but maybe

    =IF(OR(
    AND(D7="U", D13-D6>=3.1),
    AND(D7="P", D13-D6>=15.1),
    AND(D7="R", D13-D6>=30.1),
    AND(D7="CU<24", D13-D6>=3.1),
    AND(D7="CU>24", D13-D6>=1.1) ),"NM","X")
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699
    Here's one way.....

    =IF(OR(AND(D7="U",D13-D6>=3.1),AND(D7="P",D13-D6>=15.1),AND(D7="R",D13-D6>=30.1),AND(D7="CU<24",D13-D6>=3.1),AND(D7="CU>24",D13-D6>=1.1)),"NM",IF(AND(D7="specific letter",D13-D6=3.1),"X",""))

    Edit: I note that you posted the same question at MrExcel, here. "Cross-posting" questions without a link to the cross-post(s) breaks our forum rules....
    Last edited by daddylonglegs; 11-02-2008 at 05:12 PM.

+ 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