+ Reply to Thread
Results 1 to 5 of 5

Unique Values from 2 Columns of a table to an array

  1. #1
    Registered User
    Join Date
    01-05-2020
    Location
    Sacramento, CA
    MS-Off Ver
    Office 2016
    Posts
    3

    Unique Values from 2 Columns of a table to an array

    Cross Posted on Chandoo Forums as well

    Hi All,

    One of my staff is responsible for maintaining calendars for doctors in excel.
    The data is in a table with Doctor Name, Date, Site, Start Time, End time.


    Sample spreadsheet attached. Please note its not a range but table.

    I need help with achieving 2 things:

    1. Pick up unique values from Doctor and Site Column into a 2 dimensional array.
    From the attached example, the array should have the following values:

    Doc 1 Site 1
    Doc 1 Site 2
    Doc 2 Site 1
    Doc 2 Site 2
    Doc 2 Site 3
    Doc 2 Site 4
    Doc 3 Site 1
    Doc 3 Site 2
    Doc 3 Site 4
    Doc 4 Site 5

    2. If there’s an overlap for a doctor’s time at any other site (same doctor, same date, overlapping time of any sorts), the conflicting rows should get color coded to show a conflict.
    Please note: Start and end times excluded from this criteria. Example: one site ends at 11 AM and another starts at 11 AM, this is not a conflict and should not highlight the rows.

    From the attached example, Row 6 and 7 should get highlighted for conflict.



    Please help!
    Thanks in advance!
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by nikhilsharma30; 01-05-2020 at 10:47 PM. Reason: Cross Post Mention

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Unique Values from 2 Columns of a table to an array

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

  3. #3
    Registered User
    Join Date
    01-05-2020
    Location
    Sacramento, CA
    MS-Off Ver
    Office 2016
    Posts
    3

    Re: Unique Values from 2 Columns of a table to an array

    Sorry Marc for the oversight. I edited the post to mention the cross posting. Apologies.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Unique Values from 2 Columns of a table to an array

    Quote Originally Posted by nikhilsharma30 View Post
    Sorry Marc for the oversight. I edited the post to mention the cross posting. Apologies.
    Along with the mention we require a link to the post. Please see the red link in Marc's post to understand why.

    You also have a cross-post at MrExcel.

    Please include links to both. As a new member you will not be able to post hot links but you can post the URLs. After editing your post (but before submitting it) click Go Advanced under your post and uncheck "Automatically parse links in text".

    No further posts to this thread until links have been provided. Thanks.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Registered User
    Join Date
    01-05-2020
    Location
    Sacramento, CA
    MS-Off Ver
    Office 2016
    Posts
    3

    Re: Unique Values from 2 Columns of a table to an array

    Here are the links:

    chandoo.org/forum/threads/unique-values-from-2-columns-of-a-table-to-an-array.43359/#post-258982
    mrexcel.com/board/threads/unique-values-from-2-columns-of-a-table-to-an-array.1119593/#post-5398889

+ 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. Dynamic array - unique values from multiple columns
    By istank in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 02-04-2021, 02:42 AM
  2. Replies: 8
    Last Post: 08-16-2019, 10:59 AM
  3. Insert blank rows above a table based on unique values in one of the columns in the table
    By carlito2002wgn in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-08-2019, 01:06 PM
  4. Insert blank rows above a table based on unique values in one of the columns in the table
    By carlito2002wgn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-06-2019, 07:52 PM
  5. [SOLVED] How do I create a unique ranking from an array/table of values?
    By pperc15 in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 01-17-2013, 06:24 PM
  6. Replies: 2
    Last Post: 03-27-2012, 06:00 PM
  7. Trying to generate a table of unique values from an array...
    By djsquare in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-21-2007, 11:41 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