+ Reply to Thread
Results 1 to 3 of 3

Need help to transpose data and add headings

  1. #1
    Registered User
    Join Date
    06-13-2017
    Location
    Ontario, Canada
    MS-Off Ver
    Offic 365
    Posts
    16

    Need help to transpose data and add headings

    I am trying to take data from one tab, transpose it into columns on the next tab, but include the headings that go along with each line.

    Example one company might have 4 items under Type Cd SS, but another company might have 60, and another might have 0
    In order for me to merge these into a letter (in WORD), I need each amount / reference number in its own column.

    If I need to put in fixed headings I can, I would just need to have them in order:
    CS # ; CS Amt ; SS # ; SS Amt ; TN # ; TN Amt ; STN # ; STN Amt

    CS is only 1
    SS could be anywhere from 0 - 70
    TN could be anywhere from 0 - 5
    STN could be anywhere from 0 -5

    I am able to transpose the rows into one line per company, but unclear how to bring over the headings so I know what they are, and I can't just have them fixed because if one company has no Type Code CS then it needs to leave it blank, but it enters the next line in the first column.

    In the attached file,
    Tab - DATA = my information pulled from my system
    Tab - Working File1 = information pulled after my transposition macro
    Tab - Working File - End Result = what I would like the information to actually look like

    (also, if possible to make things easier?? before transposing make any Type Code PRS or SRS to show just SS)

    End result, I need to be able to merge into my word document the following information
    Company #
    Company Name
    Full Name
    CS #
    CS Amount
    SS #'s
    SS Amounts
    TN #'s
    TN Amounts
    STN #'s
    STN Amounts
    Attached Files Attached Files
    Last edited by ExcelMonkey1; 10-27-2020 at 12:37 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Not sure if Macro or Formula is best

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    06-13-2017
    Location
    Ontario, Canada
    MS-Off Ver
    Offic 365
    Posts
    16

    Re: Need help to transpose data and add headings

    Wondering if anyone knows if this is possible?

+ 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 paste formula in colK after a macro executed
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-20-2017, 08:39 PM
  2. Macro to paste formula to selection that replaces a formula with a named range.
    By Evan69 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-26-2017, 05:46 AM
  3. Problem with recording a macro with long formula - works in Excel but not in macro
    By tonybeo2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-28-2015, 11:25 AM
  4. VBA Macro: Plugging an Array-Formula into a Cell and Dragging Formula Down Columns
    By Brianandstewie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2013, 02:57 PM
  5. Replies: 1
    Last Post: 01-27-2013, 11:05 AM
  6. Macro: Applying formula to multiple cells in excel (formula editing)
    By city in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-27-2012, 06:41 AM
  7. Replies: 1
    Last Post: 07-20-2006, 03:05 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