+ Reply to Thread
Results 1 to 2 of 2

Select Data from Multiple Sheets, Save on one - Remove Duplicates

  1. #1
    Spammer
    Join Date
    11-21-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    387

    Select Data from Multiple Sheets, Save on one - Remove Duplicates

    I have a workbook with about 50 tabs in it.. (Each tab is a date yyyy-mm)

    What I am trying to do is take the data that is on each of those tabs, and combine it on to one worksheet, and remove the duplicate company names

    Here is the catch. When the duplicate company names are removed, I also want to know what the most RECENT DATE is that the company appeared.

    So if Company A is on Tab 2017-02 and on Tab 2017-08, for it to show "Company A", 2017-08.

    If it is possible to add how MANY times a company appears across all of the sheets that would be great too.

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2504
    Posts
    19,345

    Re: Select Data from Multiple Sheets, Save on one - Remove Duplicates

    I imagine that you are looking for a straight forward solution and I hope you get one. In the meantime perhaps this will help.
    As modeled in the attached file on the master worksheet:
    1) Populate a column for each monthly tab using the formula: =IF('2018-1'!A2="",NA(),'2018-1'!A2)
    2) Populate a single list of companies using the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    3) Populate a list of unique companies using the array entered formula*:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    4) Find the most recent date using the array entered formula*:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    5) Count the number of times a company appears using: =IF(A2="","",COUNTIFS(J$2:J$13,A2))
    *Array entered formulas are confirmed 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 us 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.

+ 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 Extract Unique Values/Remove Duplicates Across Multiple Columns of Data
    By Lanceh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-24-2017, 09:07 AM
  2. [SOLVED] VBA Pulling Data From Other Sheets Remove Duplicates
    By btone in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-23-2016, 02:09 PM
  3. [SOLVED] Macro to copy data from multiple columns to new location and remove duplicates
    By excel151515 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-23-2015, 04:21 PM
  4. Need a macro to Compare multiple sheets and Remove Duplicates
    By ajaypal.sp in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-03-2015, 12:18 PM
  5. Button to Select Range remove duplicates then paste result.
    By gtbear in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2014, 08:25 AM
  6. [SOLVED] Select rows between Bold text to remove duplicates
    By CharlieRB in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-01-2013, 11:50 AM
  7. macro to select table and remove duplicates problem.
    By 0lzi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-16-2011, 05:59 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