+ Reply to Thread
Results 1 to 12 of 12

EXACT check ignore blanks

  1. #1
    Registered User
    Join Date
    01-15-2014
    Location
    Newark, DE
    MS-Off Ver
    Excel 2007
    Posts
    91

    EXACT check ignore blanks

    Hi all. I need a formula that will compare values across multiple columns (18 of them specifically) and return a TRUE if they are all the same or FALSE if not and I need it to ignore blanks. Help!?

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: EXACT check ignore blanks

    Will there ever be an instance when all of the cells are empty?

    If so, what result would you expect?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    01-15-2014
    Location
    Newark, DE
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: EXACT check ignore blanks

    Yes that's possible and the result should be a blank.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: EXACT check ignore blanks

    Try this...

    Data Range
    A
    B
    C
    D
    E
    F
    1
    1
    1
    1
    TRUE
    2
    2
    1
    2
    FALSE
    3
    4
    1
    1
    1
    1
    1
    TRUE
    5
    1
    TRUE
    6
    ------
    ------
    ------
    ------
    ------
    ------


    This array formula** entered in F1 and copied down:

    =IF(COUNTA(A1:E1),COUNTIF(A1:E1,INDEX(A1:E1,MATCH(TRUE,A1:E1<>"",0)))=COUNTIF(A1:E1,"<>"),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

  5. #5
    Registered User
    Join Date
    01-15-2014
    Location
    Newark, DE
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: EXACT check ignore blanks

    BEAUTIFUL! Thank you so much!

  6. #6
    Forum Contributor
    Join Date
    12-13-2013
    Location
    Calgary,AB,Canada
    MS-Off Ver
    2016,O365
    Posts
    236

    Re: EXACT check ignore blanks

    assume your source database is in A1:R10 (18 columns and 10 rows) with duplicated and blank.

    U1= IF(COUNTIF(A1:R1,"")=18,"",SUM(IF(A1:R1<>"",1/COUNTIF(A1:R1,A1:R1)))=1) copy down
    Last edited by CAABYYC; 02-11-2016 at 08:04 PM.

  7. #7
    Forum Contributor
    Join Date
    12-13-2013
    Location
    Calgary,AB,Canada
    MS-Off Ver
    2016,O365
    Posts
    236

    Re: EXACT check ignore blanks

    sorry, my first formula has a error inside, after update, there is no difference between mine and tony's. both are NOT case sensitive.
    Last edited by CAABYYC; 02-11-2016 at 08:06 PM.

  8. #8
    Registered User
    Join Date
    01-15-2014
    Location
    Newark, DE
    MS-Off Ver
    Excel 2007
    Posts
    91

    Re: EXACT check ignore blanks

    Awesome thank you both!

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: EXACT check ignore blanks

    Quote Originally Posted by CAABYYC View Post
    the difference between mine and tony's array formula is as follow
    1. if all blank in same row,
    Mine: FALSE
    Tony: Blank (no indication)
    They requested a blank cell. See posts 2 and 3.

    2. case sensitive checking (example, A and a)
    Mine: FALSE
    Tony: True
    My formula is not case sensitive.

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: EXACT check ignore blanks

    You're welcome. We appreciate the feedback!

    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

  11. #11
    Registered User
    Join Date
    08-15-2017
    Location
    Isle of Man
    MS-Off Ver
    7.0
    Posts
    25

    Re: EXACT check ignore blanks

    This formula would appear to cover the issue that I have.

    But, I have come up against an problem - I have populated the table using a VLOOKUP with an IFERROR, so where the cell is in theory blank, its populated with "" and so Excel takes the supposed blank into account

    Thanks in advance.

  12. #12
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: EXACT check ignore blanks

    @Si-Phy

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

+ 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] Sumproduct to ignore blanks
    By Dgp2012 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-16-2020, 02:07 PM
  2. Ignore Blanks when using Randomize
    By How How in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2016, 02:40 PM
  3. Chart, ignore blanks
    By rwernlund in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-12-2015, 01:56 PM
  4. If Statement, ignore blanks
    By shanikakbrown in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-12-2014, 05:34 PM
  5. [SOLVED] MIN/MAX IF To Ignore Blanks
    By splendidus in forum Excel General
    Replies: 2
    Last Post: 07-04-2012, 04:00 PM
  6. Concatenate and ignore blanks
    By nujwaan in forum Excel Programming / VBA / Macros
    Replies: 28
    Last Post: 09-24-2009, 11:23 AM
  7. [SOLVED] USING IGNORE BLANKS IN FORMULA
    By Roger H. in forum Excel General
    Replies: 5
    Last Post: 04-06-2005, 12: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