+ Reply to Thread
Results 1 to 6 of 6

if two cells = true then true

  1. #1
    Registered User
    Join Date
    06-11-2012
    Location
    Essex
    MS-Off Ver
    Excel 2007
    Posts
    17

    if two cells = true then true

    Hi Everyone,

    I need an If formula for matching that both cells = True

    so it needs to be: If A1 & B1 = True then true if not faulse

    I no i'm almost there but cant quiet get it!

    help me please!!!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: if two cells = true then true

    Try this:

    =AND(A1,B1)

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    06-11-2012
    Location
    Essex
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: if two cells = true then true

    Hi I did what i though you meant but it didn't work what have i done wrong?

    =IF(AND(W5,X5)="true",1,0)

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: if two cells = true then true

    You have put true in quotes, which turn it into a text value. Try this:

    =IF(AND(W5,X5)=TRUE,1,0)

    or this, as TRUE is implied:

    =IF(AND(W5,X5),1,0)

    or this, based on my earlier suggestion to return 1 or 0:

    =--AND(W5,X5)

    or this to do the same thing:

    =AND(W5,X5)*1

    Hope this helps.

    Pete
    Last edited by Pete_UK; 06-11-2012 at 10:29 AM.

  5. #5
    Registered User
    Join Date
    06-11-2012
    Location
    Essex
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: if two cells = true then true

    You Are Brilliant!

    Thank you so much!

    Perfect! (First one exactly what I needed!)

    I new I was close but thanks so much

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: if two cells = true then true

    Glad to be of help, but all four of those suggestions will give you the desired result (with less typing for the last two).

    Pete

+ 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