+ Reply to Thread
Results 1 to 5 of 5

Placing dates into multiple columns based on common ID

  1. #1
    Registered User
    Join Date
    04-11-2012
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2010
    Posts
    76

    Placing dates into multiple columns based on common ID

    Hello,

    I have a file with two columns, ID and Date. In most cases, there is one date per ID, but in many cases there are multiple dates with a common ID. I'm looking for help with creating a macro that brings the dates into more columns to the right of the common ID, at the same time deduping the IDs. I've attached an example of what I'm looking for: the tab "start data" is what I have currently, and the tab "result" is what I'm looking for.

    Any help would be much appreciated!

    Thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Placing dates into multiple columns based on common ID

    Hi theletterh

    try this attached file and let me know

    just open the file and press Alt+F8 and run the macro
    Attached Files Attached Files
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Registered User
    Join Date
    04-11-2012
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Placing dates into multiple columns based on common ID

    Hi Naveed,

    It worked fine for the example, but my actual file has over 375K records. It churned for a while but never completed. Is there a simpler way?

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Placing dates into multiple columns based on common ID

    Try the attached.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-11-2012
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Placing dates into multiple columns based on common ID

    Thank you AB33!!

+ 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. Linking 2 excel worksheets based on common columns
    By teewhy in forum Excel General
    Replies: 1
    Last Post: 10-18-2012, 02:12 PM
  2. creating and placing multiple charts based on row values in a new sheet.
    By MarMo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-26-2012, 09:32 AM
  3. Merging Columns from 2 sheets based on a common column
    By skilaru in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-23-2012, 02:02 PM
  4. Placing a value into a range of cell based on two dates
    By michael.a7 in forum Excel General
    Replies: 1
    Last Post: 10-10-2006, 10:41 AM
  5. Placing a number into a cell based on two dates
    By michael.a7 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-10-2006, 04:51 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