+ Reply to Thread
Results 1 to 5 of 5

EXACT formula help with blank cells

  1. #1
    Registered User
    Join Date
    10-04-2017
    Location
    Australia
    MS-Off Ver
    Excel
    Posts
    5

    EXACT formula help with blank cells

    Hi,

    I had some help earlier with this one, but I have missed something that I need to have changed.

    The current formula;

    =IF(OR($A$1="",B1=""),"",EXACT($A$1,B1))

    The EXACT part of the formula works as it should.
    If A1 is blank the formula works as it should.

    Where I get stuck is that if A1 has a date and B1 is blank I don't get a "FALSE" statement.

    Can someone help me out here?

    Thanks in advance.

  2. #2
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: EXACT formula help with blank cells

    Hi Josh,

    The start of your formula states that if either A1 or B1 is blank, return blank, and since you're saying B1 is blank, your formula will return blank, not false. It doesn't even get to the 'EXACT' part of the formula since the first half is true. If you're expecting a different result then you will need to give some more information about your expected results.
    Did I help? Click *- add to my rep.

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: EXACT formula help with blank cells

    you can try this one:
    =IF(AND($A$1="",B1=""),"",IF(AND($A$1<>"",B1=""),FALSE,EXACT($A$1,B1)))

    or just for fun:
    =IF(AND($A$1="",B1=""),"",IF(XOR($A$1<>"",B1=""),EXACT($A$1,B1),FALSE))
    XOR() - Excel 2013 and above
    or
    =IFERROR(IF(AND($A$1,B1),EXACT($A$1,B1)),"")
    Last edited by sandy666; 10-05-2017 at 12:43 AM.

  4. #4
    Registered User
    Join Date
    10-04-2017
    Location
    Australia
    MS-Off Ver
    Excel
    Posts
    5

    Re: EXACT formula help with blank cells

    Thanks again sandy666

    had to use the top line due to this company using excel 2007.

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: EXACT formula help with blank cells

    You are welcome
    third option is shortest

    and as usual...
    If that takes care of your.... etc....

+ 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. exact formula copy into over 1000 cells
    By KS75f in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-28-2015, 03:12 PM
  2. Formula to work out an exact average over an exact number
    By Sandyshirl in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-11-2013, 01:35 AM
  3. [SOLVED] Return blank if no exact match or blank is found
    By matrixpom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2013, 12:57 AM
  4. [SOLVED] Simple pull exact text from cell, if blank it pulls up a 0. How to leave it as blank?
    By sharpmel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-30-2012, 02:20 PM
  5. Replies: 4
    Last Post: 11-12-2010, 01:01 AM
  6. Replies: 9
    Last Post: 07-07-2008, 10:34 AM
  7. [SOLVED] How to copy cells with keeping exact formula intact
    By Stephen in forum Excel General
    Replies: 6
    Last Post: 04-03-2005, 06:06 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