+ Reply to Thread
Results 1 to 5 of 5

Make Table a Crosstab VBA

  1. #1
    Registered User
    Join Date
    02-19-2015
    Location
    NC
    MS-Off Ver
    2013
    Posts
    2

    Make Table a Crosstab VBA

    I am trying to write a macro so that I can upload my excel data to a program.

    I need to convert from this format:
    Capture0.PNG


    to this format:
    Capture.PNG

    Can anyone help?

    I have been able to merge the patient name and MRN fields, but can not reformat to get the data elements in rows rather than columns. Manually moving or using the Paste-transpose function wont work as I plan to use this macro for large files w/ thousands of data rows that need to rapidly converted to the new format.

    Thank you
    Attached Images Attached Images
    Last edited by ms372; 02-20-2015 at 09:39 AM.

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

    Re: Macro Help

    Hi ms and welcome to the forum,

    I just got done writing the code but can't post it until you EDIT your first post and change the thread title to something like "Make Table a Crosstab VBA". We require threads to be titled something non generic (like "help me please!") so we can find them again in a search.

    You change the thread title and I'll give you two different methods for doing your job.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Make Table a Crosstab VBA

    The title of the thread has been changed Mr. Marvin
    I'm a follower of this thread

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

    Re: Make Table a Crosstab VBA

    Hi Yasser,

    I had forgotten about this thread. Find attached the macro and workbook to solve this problem. Thanks for asking again as this put it in view.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-19-2015
    Location
    NC
    MS-Off Ver
    2013
    Posts
    2

    Re: Make Table a Crosstab VBA

    This is very helpful. Thanks so much!

+ 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. Using a macro on workbook1 to create a button in wb2 and assigning macro "wb2!macro"
    By penfold1992 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2014, 11:39 AM
  2. [SOLVED] Macro to show Which macro didnt work in a nested macro
    By akhileshgs in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-10-2013, 03:21 AM
  3. Perform macro "on open" specific file- store macro in Personal Macro Workbook?
    By thompssc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-17-2012, 12:38 PM
  4. lookup macro, solver macro, realtime macro
    By xelhelp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-02-2011, 06:14 PM
  5. Cannot find macro error when running a macro from a macro in a diffrent workbook.
    By Acrobatic82 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2010, 09:22 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