+ Reply to Thread
Results 1 to 6 of 6

formula returning false

  1. #1
    Forum Contributor
    Join Date
    03-23-2010
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    153

    formula returning false

    hi guys
    i have a problem with a formula i am using
    [CODE]=IF('working sheet'!D22<>"",'working sheet'!D22&IF('working sheet'!D24<>""," or "&'working sheet'!D24,""))[/CODE

    what should happen is this

    if there is a number in d22 and d24 the formula works fine
    if there is no number in d22 then the formula doesnt work and returns the answer false

    can anyone helps please
    Last edited by sdts; 12-10-2010 at 05:56 AM.

  2. #2
    Registered User
    Join Date
    08-18-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: formula returning false

    =IF(AND(D22<>"",D24<>""),"TRUE","FALSE")

    Would that not work? Where "TRUE" could be replaced by whatever formula you wanted?

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: formula returning false

    Mabe this
    Please Login or Register  to view this content.

    Hope this helps
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Forum Contributor
    Join Date
    01-31-2007
    Location
    Aschaffenburg, Germany
    MS-Off Ver
    Office 2013
    Posts
    104

    Re: formula returning false

    Hi sdts,

    this is what your formula should look like:
    Please Login or Register  to view this content.
    There are four possible situations:
    - both cells have values,
    - no cell has values
    - D22 has a value
    - D24 has a value
    and your formula has not considered all of these possible situations.

    HTH
    Mike
    Last edited by Mike1001; 12-10-2010 at 06:30 AM. Reason: correction
    Mike 1001
    _________________________
    Let's keep trying, one day we'll succeed!

  5. #5
    Forum Contributor
    Join Date
    03-23-2010
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    153

    Re: formula returning false

    thanks guys for your replies

    mike great result
    works perfectly

    thank you all

  6. #6
    Forum Contributor
    Join Date
    01-31-2007
    Location
    Aschaffenburg, Germany
    MS-Off Ver
    Office 2013
    Posts
    104

    Re: formula returning false

    You're welcome!

+ 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