+ Reply to Thread
Results 1 to 13 of 13

Need to list unique values from (3) separate table columns

  1. #1
    Registered User
    Join Date
    12-19-2019
    Location
    Queens, NY
    MS-Off Ver
    2013
    Posts
    27

    Need to list unique values from (3) separate table columns

    I am trying to list unique values from three separate table columns into a new (output) list. I've attached a sample sheet showing what I'm hoping to be able to accomplish.

    Also, I would like to use an 'index/match' formula on the output list to grab cost values from the three tables and match them with their respective part numbers.

    My 'desired output' list shows the formulas that I'm using currently which pulls data from a single table, but I cannot figure out how I'd be able to use a similar formula that would grab data from all three of the tables.

    I hope that I'm explaining this correctly!

    Any help would be greatly appreciated.

    Thank you,
    Attached Files Attached Files
    Last edited by jvcalandra; 08-22-2022 at 02:30 PM. Reason: Forgot to add sample sheet

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need to list unique values from (3) separate table columns

    Is it an option to add all 3 tables into 1 table and after that analyse the data?
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    12-19-2019
    Location
    Queens, NY
    MS-Off Ver
    2013
    Posts
    27

    Re: Need to list unique values from (3) separate table columns

    Hello, thanks for your reply. I could combine all of the data, but it would be a last resort. I'm trying to keep the tables separate because the data listed in the tables is used as data validation in another tab of the workbook I've created, and I don't want the validation list to contain items that are not relevant so it doesn't become cluttered.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Need to list unique values from (3) separate table columns

    with data In one table, Dv could be based on "Xpart","Ypart" if these were added as a column. Having multiple tables is not be recommended as they add nothing but complexity.

    It is easier to "dis-assemble" than to "re-assemble".
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,377

    Re: Need to list unique values from (3) separate table columns

    Since you have office 2013, I would go for VBA. Although I completely agree with earlier mentioned suggestions.

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-19-2019
    Location
    Queens, NY
    MS-Off Ver
    2013
    Posts
    27

    Re: Need to list unique values from (3) separate table columns

    Hi John,

    The worksheet I made is used to create estimates for my job. I'm trying to keep the tables separately becuase different users will input values (parts) specific to the area they work in. the output sheet gives a master list (in no particular order) that will be used to place orders and keep track of inventory. If I lumped everything into one table, then there would be extra coding required by the input teams in order to keep the data organized.

    I was hoping there was an easy way to reference three or more tables, for example, index((XPARTS[Xparts])*(YPARTS[Yparts])*(ZPARTS[ZParts]),Match...'-type of formula.

    I'm also trying to stay away from VBA if at all humanly possible. I can tinker around with formulas to get them to work, but the VB coding is just way over my head!!

    Thanks,
    Last edited by jvcalandra; 08-22-2022 at 03:05 PM.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Need to list unique values from (3) separate table columns

    ... how many tables (more than the 3 in your sample)? and are they organised as per your sample?

  8. #8
    Registered User
    Join Date
    12-19-2019
    Location
    Queens, NY
    MS-Off Ver
    2013
    Posts
    27

    Re: Need to list unique values from (3) separate table columns

    As of now, there are only three tables, but I may need to add more in the future. They're organized in a similar manner as shown in my sample sheet, although in my actual workbook, the the output sheet is on a different tab/worksheet than the input tables.

    I've attached a more detailed test sheet. it's actually pulled from the workbook i made, but i removed all of the irrelevant tabs and columns. If you go to the 'materials' tab, you'll see (3) tables set up, with some sample information entered. if you go to the 'takeoff' tab, you'll see where someone would use the data validation to enter some of the info listed in the 'materials' tab to create the job estimate (just for reference, on my takeoff sheet; SB stands for 'substrate material', SBQ is 'substrate material qty, HST stands for 'Hardware Spec', HSQ is Hardware Spec Qty', DSL stands for 'Desired Security Lock', and DSQ is Desired Security Lock Qty').


    If you then go to the 'job data' tab, you'll see a table showing one of the part numbers (PN1). I'm just trying to list AA and BB underneath PN1. Please disregard all of the '#REF!' that shows up, there were 6 tabs that I deleted for labor operations, customer data, etc. that fed into the 'job data' sheet. That info was not relevant to what I'm trying to accomplish here so i just removed it to keep it as simple as possible.
    Attached Files Attached Files
    Last edited by jvcalandra; 08-22-2022 at 03:31 PM. Reason: Providing more details.

  9. #9
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,410

    Re: Need to list unique values from (3) separate table columns

    Do you still have Excel 2013?

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Need to list unique values from (3) separate table columns

    An alternative to VBA is Power Query where the tables are appended to each other in a connection only. See the attached file to view the steps. Results are shown in Column N under your expected results and match your expectation.

    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  11. #11
    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: Need to list unique values from (3) separate table columns

    What if you used SUMIF across all the tables. PT1 .... PTn can be input by typing PT1 in the first cell and then dragging the fill handle down. PT2.... will autofill PT2, PT3 etc.
    Then in O6 this formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 08-22-2022 at 03:58 PM. Reason: Error check formula
    Dave

  12. #12
    Registered User
    Join Date
    07-19-2022
    Location
    Hong Kong
    MS-Off Ver
    365
    Posts
    28

    Re: Need to list unique values from (3) separate table columns

    deleted ...... power query good way
    Last edited by nojoke1105; 08-22-2022 at 04:00 PM.

  13. #13
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,410

    Re: Need to list unique values from (3) separate table columns

    I found a way how you can easily get data from many tables wherever they are with a formula.
    You can adjust or rearrange the column numbers of the data you want to obtain also.

    Please try the following
    1. Put the table names from which you want to get the data in table Tablenames.

    2. Try in N6 and copy down and right:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    3. Try in M6:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    4. Adjust the column numbers or the order if necessary.
    Attached Files Attached Files

+ 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. Loop in columns, select unique values and copy to separate list
    By ISMI in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-27-2021, 07:33 PM
  2. [SOLVED] Formula to get unique list of values from multiple columns in a table
    By paulma1960 in forum Excel Formulas & Functions
    Replies: 35
    Last Post: 10-31-2021, 07:31 PM
  3. Replies: 3
    Last Post: 11-20-2020, 03:14 PM
  4. [SOLVED] Create a list of unique values from several columns in a dynamic table.
    By schurchill39 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-28-2018, 06:51 PM
  5. [SOLVED] Compare table on 2 separate spreadsheets and highlight unique values
    By lashellr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2014, 01:50 PM
  6. 3 columns: None contain unique values, but I need a list of every unique set
    By mathematician in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-15-2012, 04:47 PM
  7. Add two unique values from two separate columns
    By Mrcoop in forum Excel General
    Replies: 3
    Last Post: 09-28-2011, 05:23 AM

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