+ Reply to Thread
Results 1 to 5 of 5

Need help with multiple IF/AND statement

  1. #1
    Registered User
    Join Date
    12-20-2011
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    40

    Need help with multiple IF/AND statement

    Hello,

    I have a tracker I'm using for a work project and have several parameters I need to fill in data for. For tracking, I'm using a simple if statement to show if there is data populated, return a "yes". If not, return "no". ex: =IF('PS(Opt,FI,Eq)'!B2="TBD","NO","YES"). I have a similar formula for B2-N2that references a different tab on my sheet. I want to show if all cells have a "Yes", return a "Yes" to show all items are completed. I'm trying to use this formula but get an error. Can someone see what I'm doing wrong?

    =IF(AND(F5="YES",G5="Yes",H5="Yes",I="YES",J5="YES",K5="YES",L5="YES",M5="YES",N5="YES"),"YES","0")

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Need help with multiple IF/AND statement

    Hi,

    Looks like you've mistyped "I5". This is a bit simpler, perhaps:

    =IF(COUNTIF(F5:N5,"YES")=COLUMNS(F5:N5),"YES","0")

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Need help with multiple IF/AND statement

    or see of there is a NO
    =IF(COUNTIF(F5:N5,"NO"),0,"yes")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    12-20-2011
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Need help with multiple IF/AND statement

    ok great. thanks so much!

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Need help with multiple IF/AND statement

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. [SOLVED] Multiple If Statement
    By timbo1957 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-12-2013, 07:37 AM
  2. [SOLVED] Multiple If, AND, OR statement
    By jdohler in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 10-29-2013, 02:14 AM
  3. [SOLVED] If statement that will look among multiple criteria and generate a statement
    By liz5818 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-01-2013, 04:12 PM
  4. IF statement using multiple variables to give multiple outcomes
    By stujordan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-06-2009, 06:46 AM
  5. Help with a multiple OR statement.
    By Pank in forum Excel General
    Replies: 2
    Last Post: 07-11-2006, 01:35 PM

Tags for this Thread

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