+ Reply to Thread
Results 1 to 9 of 9

Can't workout or if and formula

  1. #1
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Can't workout or if and formula

    Hi everyone,

    I have two cells, A1 and B1

    What I'm trying to do is create a formula which will return the result TRUE if both cells A1 and B1 have text in them OR if both cells A1 and B1 do not have text. Therefore, if either one of the cells have text but the other one doesn't, the result is FALSE.

    Any ideas?

    Thanks!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Can't workout or if and formula

    It depends on what you mean by text...

    =IF(OR(ISNUMBER(A1),ISNUMBER(B1),ISBLANK(A1),ISBLANK(B1)),FALSE,TRUE)

    If $ and * and " count as text, this works....
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Re: Can't workout or if and formula

    Hi Glenn,

    Thanks for your suggestion. I'm afraid the result is not correct when I try it in excel. Both A1 and B1 have a 1 in it but the result is False where as it should be true.

    So again, if A1 and A2 have text (of any kind), or if A1 and A2 have nothing in them, the result should be True. Anything else is False.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Can't workout or if and formula

    That's not the same question, is it??

  5. #5
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Re: Can't workout or if and formula

    Hey Glenn, yes its the same question. If A1 and A2 both have text, or if A1 and A2 both do not have text, the result is True, otherwise its False.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Can't workout or if and formula

    Try this, then:

    =OR(AND(ISBLANK(A1),ISBLANK(B1)),AND(LEN(A1)<>0,LEN(B1)<>0))

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Can't workout or if and formula

    Quote Originally Posted by Groovicles View Post
    Hey Glenn, yes its the same question. If A1 and A2 both have text, or if A1 and A2 both do not have text, the result is True, otherwise its False.
    Noo.. I'd interpret "TEXT" as meaning something other than a number....

  8. #8
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Oshawa
    MS-Off Ver
    Excel 2010
    Posts
    660

    Re: Can't workout or if and formula

    That's perfect, thanks Glenn. Sorry about the text misunderstanding.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Can't workout or if and formula

    WooHoo! Glad to have helped and thanks for the Rep.

+ 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] looking for a formula to workout my turnover
    By andym5100 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-03-2014, 02:17 PM
  2. Require Excel formula or workout for date wise booking and availability
    By Jaspreet Singh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-26-2013, 02:44 AM
  3. Cant workout a sum formula if formulated cells return a blank
    By bopsgtir in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-19-2013, 08:53 AM
  4. Formula to workout average for the month
    By dave1983 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-04-2013, 11:13 AM
  5. Excel 2007 : Formula to workout target dates
    By steve_84 in forum Excel General
    Replies: 1
    Last Post: 11-03-2009, 02:35 PM
  6. Can't workout formula in table
    By JUBA in forum Excel General
    Replies: 1
    Last Post: 04-22-2007, 10:16 PM
  7. formula to workout equal to or greater than
    By wheelie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-01-2006, 08:15 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