+ Reply to Thread
Results 1 to 6 of 6

having trouble understanding formula with if statements with and, istext, or conditions

  1. #1
    Registered User
    Join Date
    10-14-2013
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    46

    having trouble understanding formula with if statements with and, istext, or conditions

    Here's what I want:

    If any of the these 3 cells (B,F.G) say completed, and cell J is text then give 1 otherwise 0 in cell AN

    Here's what I did but keep getting all 0's:
    =IF((AND(istext(J57(OR(B57="Completed", F57="Completed", G57="Completed"))),1,0)))

    excel autocorrected it to: =IF((AND(ISTEXT(J2*(OR(B2="Completed",F2="Completed",G2="Completed"))))),1,0)

    Any help would be appreciated.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: having trouble understanding formula with if statements with and, istext, or condition

    Try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    EDITED TO INCLUDE THIS ALTERNATIVE
    Technically, you could use this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Is that something you can work with?
    Last edited by Ron Coderre; 05-16-2014 at 03:42 PM.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: having trouble understanding formula with if statements with and, istext, or condition

    This is cell N1 formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: having trouble understanding formula with if statements with and, istext, or condition

    I think what you want is:
    =IF(AND(ISTEXT(J2),OR(B2="Completed",B2="Completed",B2="Completed")),1,0)
    Click on star (*) below if this helps

  5. #5
    Registered User
    Join Date
    10-14-2013
    Location
    Ohio, US
    MS-Off Ver
    Excel 2010 - 2016
    Posts
    46

    Re: having trouble understanding formula with if statements with and, istext, or condition

    Yes this works. I see where I made the mistake. Thank you!

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: having trouble understanding formula with if statements with and, istext, or condition

    Glad you got something you can use!

    Be sure to mark this thread as SOLVED (from the Thread Tools menu)

+ 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] Having trouble doing what I want with IF statements.
    By poisontoast in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-21-2012, 03:38 AM
  2. Replies: 3
    Last Post: 09-10-2012, 05:01 AM
  3. Replies: 2
    Last Post: 06-24-2010, 11:44 PM
  4. Replies: 12
    Last Post: 05-15-2009, 08:38 AM
  5. Understanding if and countif statements
    By Tweetie in forum Excel General
    Replies: 2
    Last Post: 03-24-2009, 04:36 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