+ Reply to Thread
Results 1 to 5 of 5

If A1 or A2 contains X

  1. #1
    Forum Contributor
    Join Date
    10-23-2014
    Location
    Kolding, Denmark
    MS-Off Ver
    MS Office 2010
    Posts
    169

    If A1 or A2 contains X

    Hi,

    I have a file where i would like a formula in a3 which writes a 0 if A1 og A2 contains and X, if none of them conatains X then A3 should say 1.

    Can anyone help me ?

    thanks in advance

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: If A1 or A2 contains X

    Is this what you want?

    =if(or(A1="X",A2="X"),0,1)
    Happy with my advice? Click on the * reputation button below

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: If A1 or A2 contains X

    Try ...

    =--(COUNTIF(A1:A2,"X")=0)
    Last edited by Phuocam; 06-09-2016 at 05:51 AM.

  4. #4
    Forum Contributor
    Join Date
    10-23-2014
    Location
    Kolding, Denmark
    MS-Off Ver
    MS Office 2010
    Posts
    169

    Re: If A1 or A2 contains X

    Crooza: thanks that on works perfektly

  5. #5
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: If A1 or A2 contains X

    Great. Glad it worked

+ 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