+ Reply to Thread
Results 1 to 6 of 6

Nested AND & OR Conditionals in a Formula

  1. #1
    Registered User
    Join Date
    03-22-2014
    Location
    compton
    MS-Off Ver
    Excel 2010
    Posts
    2

    Nested AND & OR Conditionals in a Formula

    Hello,

    My company sells artwork and we got a new printer which can print maximum dimensions of 40x56 inches. That can be laid out as either 40x56 for portrait, or 56x40 for landscape format.

    Anything bigger than either dimension cannot work. We have over 50,000 prints in our library that were sized for our old printer, so we have to identify which ones have to be re-sized for the new on.

    Basically I need to be able to read 2 Excel columns and tell if a print is "OK" or "TOO BIG" so that we can resize them if needed.

    The dimensions are listed in Columns A and B

    L W RESULTS

    39 56 OK
    40 55 OK
    40 56 OK
    41 56 TOO BIG
    40 57 TOO BIG


    Here is the logic (not the actual formula - I tried so many and junked them all)

    IF A2<=40, and B2<=56 then C2="OK". IF else, C2="TOO BIG"
    IF A2<=56, and B2<=40 then C2="OK", IF else, C2="TOO BIG"

    I've been trying to figure this out for about 3 hours now, and I can't get things properly nested no matter what I try.

    Can someone please kindly get me pointed in the right direction please?

    Thank you so much for your time.

    Best,
    Joe C.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Nested AND & OR Conditionals in a Formula

    Try this:

    =IF(AND(A2<=40,B2<=56),"OK",IF(AND(A2<=56,B2<=40),"OK","TOO BIG"))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Nested AND & OR Conditionals in a Formula

    Hi and welcome to the forum

    Not sure if this will work for you or not....
    =IF(AND(A2<=56,B2<=56),"OK","TOO BIG")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Nested AND & OR Conditionals in a Formula

    Quote Originally Posted by FDibbins View Post
    Hi and welcome to the forum

    Not sure if this will work for you or not....
    =IF(AND(A2<=56,B2<=56),"OK","TOO BIG")
    No, it won't. The maximum dimensions the printer can handle are 40" x 56".

  5. #5
    Registered User
    Join Date
    03-22-2014
    Location
    compton
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Nested AND & OR Conditionals in a Formula

    Thank you so much for the help. I would have floundered aroudn with that for like 5 more hours and still probably not solved it.

    That's why I joined this forum over the others.
    You guys are great.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Nested AND & OR Conditionals in a Formula

    You are welcome!

+ 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. Fomula hi lite cells based upon nested conditionals
    By smbbcoach in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-06-2012, 04:51 PM
  2. sumif with conditionals
    By syphlix in forum Excel General
    Replies: 3
    Last Post: 02-28-2011, 03:39 PM
  3. [SOLVED] Conditionals
    By Salvador Enríquez M in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-18-2006, 05:20 PM
  4. sumproduct and conditionals
    By Gixxer_J_97 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-02-2005, 02:05 PM
  5. Multi Conditionals?
    By johntherevelato in forum Excel General
    Replies: 1
    Last Post: 03-07-2005, 05:04 PM

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