+ Reply to Thread
Results 1 to 3 of 3

Use of "IF" and "AND" to print a message

  1. #1
    Registered User
    Join Date
    07-10-2007
    Posts
    11

    Use of "IF" and "AND" to print a message

    Hi,

    I’m trying to program this formula in cell A43 but doesn’t work. Basically I want to satisfy 3 conditions to print a message, that is:

    1)E21 = something
    2)E22 > something
    3)E23> something

    I’m using “IF” and “AND” and I get the following message:
    “You’ve entered to many arguments for this function”

    This is the formula I’m trying to create:

    =IF(AND(E21=0.375,E23>4),"Member thickness is O.K!","Change Anchor diameter to comply with member thickness!",IF(AND(E21=0.5,E22>=2,E23>=4),"Member thickness is O.K!","Change Anchor diameter to comply with member thickness!",IF(AND(E21=0.5,E22>=3.25,E23>=6),"Member thickness is O.K!","Change Anchor diameter to comply with member thickness!",IF(AND(E21=0.625,E22>=3.125,E23>=5),"Member thickness is O.K!","Change Anchor diameter to comply with member thickness!",IF(AND(E21=0.625,E22>=4,E23>=6),"Member thickness is O.K!","Change Anchor diameter to comply with member thickness!",IF(AND(E21=0.75,E22>=3.75,E23>=6),"Member thickness is O.K!","Change Anchor diameter to comply with member thickness!",IF(AND(E21=0.75,E22>=4.75,E23>=8),"Member thickness is O.K!","Change Anchor diameter to comply with member thickness!")))))))

    If somebody can give me an idea about what’s happening and give me some hints to make it work it would be greatly appreciated.

    Thank you very much,
    Cesar
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Perhaps combine all the AND's under an OR:

    Please Login or Register  to view this content.
    Last edited by NBVC; 08-11-2008 at 03:01 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    07-10-2007
    Posts
    11

    Thank you!!

    NBVC,

    Thank you so much!!

    Cesar

+ 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