+ Reply to Thread
Results 1 to 3 of 3

Can't extract data from a table

  1. #1
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2019
    Posts
    756

    Can't extract data from a table

    Hello everyone,

    I want to extract the names of employees from a table (as shown below). The names are in columns H, J and L, so is there a way I can simply have a single column table on the next sheet which displays the data extracted from columns H, J and L, but ignoring zeros and duplicates in the process?

    Table 1.JPG

    Many thanks,


    Chris
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Cant extract data from a table

    This solution uses helper columns which may be hidden for aesthetic purposes. The first three helper columns use the following formula to copy the lists of names without the zeros:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The next array entered formula* creates a full list of names, with duplicates:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The next formula removes duplicates (Note that I added Gary Jones name again in column J to demonstrate):
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The formula in column A filters out the blank cells from the final helper list:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    *Array entered formulas are activated by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Let me know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Can't extract data from a table

    This can be done with a single (albeit long) formula.

    However, in your sample file there is some kind of unseen "junk" in the blank cells in columns H, J and L that is causing problems.

    I'm guessing that there were formulas in these cells that returned formula blanks and the formulas were converted to constant values.

    Can you comment on this?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Extract html table data from specifi table only
    By hcyeap in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-26-2016, 02:34 PM
  2. Extract data from table
    By etaver87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-21-2016, 10:23 AM
  3. Need to extract data from table.
    By scottjwe in forum Excel General
    Replies: 1
    Last Post: 06-18-2015, 09:46 PM
  4. [SOLVED] Extract data from a Table
    By RASIKA99 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-11-2014, 07:41 AM
  5. Extract data from a Table
    By RASIKA99 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-28-2014, 01:13 PM
  6. Extract data from a Table
    By RASIKA99 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2014, 01:26 PM
  7. Search for Excel file and the sheet within that from the given table data and extract data
    By adrian_slash in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2013, 07:55 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