+ Reply to Thread
Results 1 to 6 of 6

Return Unique Values in New Workbook

  1. #1
    Registered User
    Join Date
    02-12-2014
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2013
    Posts
    24

    Return Unique Values in New Workbook

    Hi,

    I have a worksheet that contains a set of data, but the first three columns (A:C) need to be summarized on a daily basis in a new workbook and I have been struggling in putting it all together in "stable" VBA code.

    I attached an example with sample data and my desired output. The data is tracking truck loads.

    Column A contains a date (always the same for every row), column B a Driver's Name, and Column C holds a unique BOL number (always associated to a driver)

    In short, I am basically replicating a pivot table output, listing the date in column A, the unique driver names in Column B, and then listing the BOLs for that driver in columns adjacent to the driver name, starting with Column C in a new workbook.

    If possible, I'd like to name the new workbook Cleburne Driver Loads + Date listed....so "Cleburne Driver Loads 11.19.14" in this example.

    Any help would be appreciated.


    Macro Example.xlsm

  2. #2
    Valued Forum Contributor
    Join Date
    08-04-2011
    Location
    UK
    MS-Off Ver
    Excel 2021
    Posts
    346

    Re: Return Unique Values in New Workbook

    your summary is in green, the yellow cells are ARRAY{} with Control-Shift-Enter to input.

    couldn't find a way to tidy it up with the IFERROR and ARRAY{} formula, may be someone else can help
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-12-2014
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2013
    Posts
    24

    Re: Return Unique Values in New Workbook

    Thank you for the help, but I need the unique data exported to a new WorkBook, so formulas will not work.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Return Unique Values in New Workbook

    Put this formula in I17 and pull it across and down... CSE formula...

    =IFERROR(INDEX($C$1:$C$51,SMALL(IF($B$1:$B$51=$H$17,ROW($B$1:$B$51),""),COLUMN(I17)-8),1),"")
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    02-12-2014
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2013
    Posts
    24

    Re: Return Unique Values in New Workbook

    Thank you but I believe I need this to be macro based in-order for it to be outputted into a new Workbook.

  6. #6
    Valued Forum Contributor
    Join Date
    08-04-2011
    Location
    UK
    MS-Off Ver
    Excel 2021
    Posts
    346

    Re: Return Unique Values in New Workbook

    isn't just as easy to copy the summary and paste values to the new workbook?

+ 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. Return number of unique values based on values in other column
    By Medir in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-26-2013, 11:17 AM
  2. Formula: return unique values
    By Bramjonker in forum Excel General
    Replies: 6
    Last Post: 06-19-2012, 12:22 PM
  3. Return Ordered Unique Values Function
    By JSimone in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-20-2011, 12:51 AM
  4. Look across values in 12 columns, return the number of unique values
    By NukedWhale in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-21-2009, 05:18 PM
  5. return all unique values
    By pilotwings64 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-09-2008, 09:12 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