+ Reply to Thread
Results 1 to 4 of 4

VBA Code to reformat extract

  1. #1
    Registered User
    Join Date
    09-17-2014
    Location
    Cambridge, England
    MS-Off Ver
    2016
    Posts
    58

    VBA Code to reformat extract

    Hello,

    I need some assistance please. I have posted this on the Formula forum a few days ago and I did get a response which was helpful, but my requirements for this extract have now changed and I need to look for VBA coding to automate.

    Basically I have a messy extract that lists vertically a column of unique client ID numbers (unique in that they are always for that customer but not unique as they appear multiple times) with a second column telling me a product code that they have purchased. The issue being is that each client could appear just once, but could also appear anything up to 4 or 5 times which is where the issue is.

    I need VBA to format this extract so that the client ID number only appears once in the column, but if there was more than one occurance in the original extract, the product codes need to appear horizontally so that I can do a VLOOKUP against the final result.

    Unfortuantely, whilst I am handy at times with formulas and VBA - this particular problem is beyond my capabilities.

    I have attached a very basic example spreadsheet to demonstrate what the extract looks like currently and how I need it to look. It is far easier to show you than explain.

    Any help would be really appreciated.

    Kind Regards
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: VBA Code to reformat extract

    Try
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-17-2014
    Location
    Cambridge, England
    MS-Off Ver
    2016
    Posts
    58

    Re: VBA Code to reformat extract

    Jindon,

    Your a star. Thanks. Does exactly what I need.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: VBA Code to reformat extract

    You are welcome and thanks for the rep.

+ 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. Macro to extract certain data from a source and reformat it
    By ZeDoctor in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-01-2016, 08:34 AM
  2. How an I update this code to allow me to select the column I want to reformat?
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2015, 01:53 PM
  3. Replies: 3
    Last Post: 12-18-2014, 10:27 AM
  4. [SOLVED] VBA Code to Copy Data and reformat it between two workbooks
    By Granite-Granny in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-19-2014, 06:30 PM
  5. csv to excel reformat data in vba code doesn't run
    By deekar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-15-2014, 04:52 PM
  6. Formula or VBA code to reformat data
    By bbook in forum Excel General
    Replies: 2
    Last Post: 01-10-2008, 11:54 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