+ Reply to Thread
Results 1 to 4 of 4

Syntax for multiple if/and formula

  1. #1
    Registered User
    Join Date
    02-14-2012
    Location
    High Desert, CA
    MS-Off Ver
    Excel 2010
    Posts
    37

    Syntax for multiple if/and formula

    I know this has to already be here somewhere, but I cannot find it, so sorry for asking, but thanks for the help.

    I am using Excel 2010

    I am needing a formula that checks several cells for true, then gives a result.

    For example, if b2="word1" AND if b3="word2" AND b4=1234 AND b5=5678 AND b6=c1+c2 then "Correct"

    I hope that was clear, not sure how to express it in English, let alone in Excelese!

    Thanks Again!

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Syntax for multiple if/and formula

    you did it
    =IF(AND(B2="word1",B3="word2",B4=1234,B5=5678,B6=(C1+C2)),"Correct","Icorrect")

    IF()
    AND()
    Last edited by sandy666; 07-13-2018 at 08:20 PM.

  3. #3
    Registered User
    Join Date
    02-14-2012
    Location
    High Desert, CA
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Syntax for multiple if/and formula

    Hmmm, I replied once, does not seemed to have taken. I tried this, and it did not quite work, I suspect I misunderstood. However, I took this and with some minor teaking, it worked great, I had an issue with balancing the parenths. I think it was because I monkeyed with it to suit my exact situation, not quite like the example I provided. Thanks a lot Sandy!

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Syntax for multiple if/and formula

    You are welcome

    Have a nice day

+ 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. Formula syntax with Variables and multiple sheets.
    By NicholasL in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-17-2013, 02:52 PM
  2. [SOLVED] Syntax for formula that uses multiple conditions inside of multiple IF statements
    By njmiller31 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-02-2013, 11:55 AM
  3. [SOLVED] Syntax for Writing Long VBA Formula on Multiple Lines
    By nwd9s in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-13-2011, 06:38 AM
  4. Multiple If Statement Help-Fixing Formula Syntax
    By vargs in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-09-2010, 10:09 AM
  5. Multiple IF conditions and SYNTAX Error
    By venkat_kodi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-06-2007, 05:11 PM
  6. [SOLVED] Syntax for IF with multiple criteria
    By SueJB in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-20-2005, 02:47 PM
  7. Syntax for multiple if statement
    By AndyRoo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-03-2005, 08:25 PM
  8. [SOLVED] C# syntax for getting multiple sheets?
    By Mattias Beermann in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2005, 04:05 AM

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