+ Reply to Thread
Results 1 to 2 of 2

Help in using 'IF' statements in Excel

  1. #1
    Registered User
    Join Date
    04-29-2005
    Posts
    1

    Help in using 'IF' statements in Excel

    Hi,

    can someone please help me with the formulat ot use to code a if statement with and included.

    Like for example if want to say (if A and B are ture display A) in an Excel worksheet. How do we do it and how to in general use a (if condition with and/or included.

    Thanks in advance,

    avitra

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Assuming your cells to test are A1 and B1, use this formula:

    =IF(AND(A1=5,B1=10),A1,"FAIL")

    therefore, if A1 contains 5 AND B1 contains 10, 5 is returned. If A1 OR B1 is anything else, the text "FAIL" is returned.

    HTH

    Bruce
    Bruce
    The older I get, the better I used to be.
    USA

+ 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