+ Reply to Thread
Results 1 to 2 of 2

Cant stop it counting a blank cell as an option

  1. #1
    Forum Contributor
    Join Date
    03-19-2014
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    101

    Cant stop it counting a blank cell as an option

    Hi

    The below formula is looking through a big list of names, all name populate more than once, the formula pulls out a list of the names only once so I can see a shorter list of how many names a represented in the big list.

    The problem is there is also blanks in this list of names and this formula is considering a Blank a name, the blank cell it counts does have a formula in it.

    =IFERROR(INDEX(Reference!$G$2:$G$600,MATCH(0,COUNTIF(H$2:$H2,Reference!$G$2:$G$600)+IF(COUNTIF(Reference!$G$2:$G$600,Reference!$G$2:$G$600)>1,0,1),0)),"")

    The part I have underlined I believe to be the problem but I cant work it out.

    Assistance would be appreciated.

    Its an Array formula.

    Thanks

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Cant stop it counting a blank cell as an option

    You may try this Array Formula which requires confirmation with Ctrl+Shift+Enter.

    Assuming your Names are on the Reference Sheet in the range G2:G600 with blank cells in between and you want to extract the unique list of Names on another sheet starting from A2, then...

    In A2

    Please Login or Register  to view this content.
    Remember to change the column reference if you want to extract the list in a column other than col. A. So if you want to have this formula say in col. H starting from H2, the red range reference would be $H$1:H1 in the formula.

    See if this helps.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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. STOP PRINTING IF CELL is BLANK E.G B2 is blank then stop printing
    By gopising in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-17-2014, 10:03 AM
  2. Stop formula counting when it is equal to another cell?
    By Margate in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-08-2013, 08:04 PM
  3. Stop counting days if cell X is empty
    By Knawl in forum Excel General
    Replies: 2
    Last Post: 02-05-2010, 09:13 AM
  4. Counting should stop at blank cell
    By roberto1111 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-09-2009, 01:22 PM
  5. [SOLVED] #DIV/0! how to stop this in blank cell
    By S S in forum Excel General
    Replies: 8
    Last Post: 08-13-2006, 05:50 PM

Tags for this Thread

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