+ Reply to Thread
Results 1 to 2 of 2

Formula for counting number of unique values in multiple non-adjacent columns with blanks

  1. #1
    Registered User
    Join Date
    02-18-2013
    Location
    Edmonton, Alberta
    MS-Off Ver
    Excel 2013
    Posts
    1

    Formula for counting number of unique values in multiple non-adjacent columns with blanks

    Hello,
    I'm looking to count the number of unique values in multiple non-adjacent columns. These columns do have blanks. E.g.
    Column A:
    1
    2
    3
    4
    5
    6
    7
    Column E:
    2
    Blank
    4
    5
    6
    7
    8
    9
    Blank
    10

    So I would want to get a result of 10 total unique values within the two combined columns.

    Thank you

  2. #2
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Formula for counting number of unique values in multiple non-adjacent columns with bla

    assuming that your data ranges are A1:A10 and E1:E10, try in F1 as an ARRAY-entered formula:

    Please Login or Register  to view this content.
    this solution will only work if you have numerical entries in your ranges.

    the {1,0} trick is courtesy daddylonglegs.

    UPDATE

    another, simpler, more extensible solution (again, ARRAY-entered):

    Please Login or Register  to view this content.
    in case you have other columns, such as C1:C10, the above formula can be extended thus:

    Please Login or Register  to view this content.
    in case your data were along rows (instead of columns), the formula would be (observe the use of ";" instead of ","):

    Please Login or Register  to view this content.
    Last edited by icestationzbra; 02-20-2013 at 11:44 AM. Reason: simpler, extensible solution
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

+ 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