+ Reply to Thread
Results 1 to 4 of 4

Retrieve Unique Values from Columns in Multiple Worksheets

  1. #1
    Registered User
    Join Date
    07-20-2019
    Location
    Miami
    MS-Off Ver
    365
    Posts
    69

    Retrieve Unique Values from Columns in Multiple Worksheets

    Hello,

    I’d like to capture unique strings from a column on multiple worksheets while also accounting for blanks. I’m currently using the following nested INDEX/MATCH/COUNTIF formula (array) to retrieve the values:

    Please Login or Register  to view this content.
    While this works somewhat, it has a number of problems:
    1. I need to capture the unique values for 9 worksheets so nesting this many IFERROR blocks would be difficult to create/maintain
    2. My understanding is that nested IFERROR blocks significantly impact performance
    3. Because the unique values are captured per worksheet, adding a new value in any worksheet except the last one adds the new value inside of the existing list causing the associated columns to be wrong. In the attached spreadsheet, if you add “Trainer” into A2 of Sheet2, the 80 Hours which were associated with Developer are now incorrectly assigned to the newly added Trainer row.

    Is there are better way to capture the unique values (accounting for blanks), as well as ensure that new values are added to the end of the list instead of in the middle?

    Constraints:
    • Cannot use Macros or VBA code
    • Solution must work in SharePoint Online
    • Must work in Office 365
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Retrieve Unique Values from Columns in Multiple Worksheets

    =iferror(indirect(text(aggregate(15,6,(row($k$2:$m$9)*10000+column($k$2:$m$9))/($k$2:$m$9<>0)/(countif($a$2:a2,$k$2:$m$9)=0),rows($a$1:$a$1)-counta($a$2:$a$2)),"r000000c0000"),),"")

    PS
    Must work in Office 365
    maybe 2003?
    Attached Files Attached Files
    Last edited by tim201110; 07-22-2019 at 04:09 PM.

  3. #3
    Registered User
    Join Date
    07-20-2019
    Location
    Miami
    MS-Off Ver
    365
    Posts
    69

    Re: Retrieve Unique Values from Columns in Multiple Worksheets

    Thanks for replying Tim201110,

    I notice your example has 0s in the source field (mine would be NULL) so I should be able to switch <>0 to <>"" to resolve. The biggest thing is new values are still inserted in the middle of the list instead of at the end. So in your example, if I add "Trainer" into K3 it moves A6's content (Developer in this case) down into A7 - causing the resource hours not to match anymore.

    Thoughts on how to resolve this piece?

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Retrieve Unique Values from Columns in Multiple Worksheets

    without macros - no way

+ 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. Retrieve values from multiple columns based on values in multiple columns.
    By webwyzard in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-12-2018, 04:29 PM
  2. Retrieve Unique values from 2 columns
    By Yash20 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-13-2016, 11:59 AM
  3. variable formula to retrieve unique values from multiple criteria
    By deanusa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-22-2016, 05:13 PM
  4. Retrieve Unique values in two columns
    By laansesu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-04-2015, 07:22 AM
  5. Replies: 3
    Last Post: 05-29-2015, 04:20 PM
  6. count unique values in multiple worksheets with multiple criteria
    By craig04 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-06-2012, 03:26 PM
  7. Replies: 5
    Last Post: 04-21-2011, 05:22 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