+ Reply to Thread
Results 1 to 10 of 10

Finding how many blocks of unique data exist in a sheet

  1. #1
    Forum Contributor
    Join Date
    04-03-2009
    Location
    Anchorage, Alaska, USA
    MS-Off Ver
    Office 365
    Posts
    113

    Finding how many blocks of unique data exist in a sheet

    UNIQUE works to find how many unique items are in a list.
    FILTER can help this by further narrowing a unique list based on if this equals that, as an example.
    COUNTA relays the number of results.

    I'm trying to use these to find how many unique blocks of data fall within a filtered service date. But I only get so far using the UNIQUE(FILTER(...)) formula I'm used to. It's like I need to use a version of UNIQUE(FILTER(UNIQUE(...))) in order to narrow down my results further to unique blocks. But I dont think UNIQUE(FILTER(UNIQUE(...))) is a thing. So maybe I need a helper column.

    I've attached an animation and a sample sheet for your use. I'm using autofilter in the example only to demonstrate a result I see, that I need Excel to "see".

    (Sorry for the misspellings)

    Animation.gif

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Finding how many blocks of unique data exist in a sheet

    It's clear you have a workbook with sample data in front of you. Please upload a sample workbook. The instructions are in the 'gold' banner at the top of the page.

    Thanks.
    Dave

  3. #3
    Forum Contributor
    Join Date
    04-03-2009
    Location
    Anchorage, Alaska, USA
    MS-Off Ver
    Office 365
    Posts
    113

    Re: Finding how many blocks of unique data exist in a sheet

    hmmm. thought I had.

    Trying again. And a better annotated screenshot too...
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by akedm; 09-14-2022 at 12:55 AM.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Finding how many blocks of unique data exist in a sheet

    Here's one way.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Finding how many blocks of unique data exist in a sheet

    Another way.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    Re: Finding how many blocks of unique data exist in a sheet

    something like this?

    Service Date Sum
    14/10/2020
    3
    06/10/2020
    1
    30/09/2020
    1
    22/09/2020
    2
    18/09/2020
    2
    16/09/2020
    2
    11/09/2020
    2
    09/09/2020
    2
    04/09/2020
    2
    31/08/2020
    2
    26/08/2020
    1

  7. #7
    Forum Contributor
    Join Date
    04-03-2009
    Location
    Anchorage, Alaska, USA
    MS-Off Ver
    Office 365
    Posts
    113

    Re: Finding how many blocks of unique data exist in a sheet

    @FlameRetired

    OMG

    =SUMPRODUCT((D6:D160=D2)/COUNTIFS(C6:C160,C6:C160,D6:D160,D6:D160,E6:E160,E6:E160))

    That is amazing.

    It took me a good while to wrap my head around this, and even now I can barely explain it to anyone. And how you thought that would work - what a crazy direction. But it works beautifully.

    To isolate TRUE values in an array so each can be divided into a number of equal percentages of 1, then added to get a total. Like I said I can barely explain it. But ... bravo! SUMPRODUCT is a formula I really need to look at more.
    Last edited by akedm; 09-23-2022 at 06:47 PM.

  8. #8
    Forum Contributor
    Join Date
    04-03-2009
    Location
    Anchorage, Alaska, USA
    MS-Off Ver
    Office 365
    Posts
    113

    Re: Finding how many blocks of unique data exist in a sheet

    @Sandy

    Thanks. I like the UNIQUE + the formula summary you provide. It's so satisfying when a ton of data is drilled down into a simple summary.

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

    Re: Finding how many blocks of unique data exist in a sheet

    Quote Originally Posted by akedm View Post
    I like the UNIQUE + the formula summary you provide. It's so satisfying when a ton of data is drilled down into a simple summary.
    this is Power Query not a formula

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Finding how many blocks of unique data exist in a sheet

    Glad to help. Good to hear you learned something helpful here. That's music to our ears.

    Thank you for the feedback, added rep and marking your thread Solved.

+ 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] Formula to pull data from blocks of 2 into blocks of 4
    By The_Snook in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-05-2022, 10:30 AM
  2. Replies: 3
    Last Post: 06-15-2020, 07:12 AM
  3. Unique between 2 columns Different Sheet and exist/not exists by split key
    By daboho in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-24-2018, 08:20 AM
  4. Trying to copy blocks of data from sheet 1 to sheet 2, but not in the same order
    By zookeepertx in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-03-2014, 08:13 PM
  5. Finding unique value and copy all data to a new sheet
    By Nickyh1984 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-14-2014, 05:18 AM
  6. [SOLVED] Finding the blank row between 2 data blocks...should be simple...
    By rpinxt in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-18-2014, 07:46 AM
  7. Using macros to identify blocks of data and summarise those blocks
    By gophbeav in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-05-2012, 04:35 AM

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