+ Reply to Thread
Results 1 to 7 of 7

How to change colums to values

  1. #1
    Registered User
    Join Date
    06-14-2014
    Posts
    4

    How to change colums to values

    Not sure if the title represents the question I am asking but here is the challenge. I have a spreadsheet with has the value "Name" and each month as the column header. In each row it will have the persons name and under each month header it will have their sales amount. I have included an example in this thread.



    My goal is to upload this spreadsheet into access with the columns name, month and sales amount so I can use this temporarily to compare with other tables.



    The first tab shows how the current data is formatted. The second tab show how I would like to possibly store it in access.


    Prepping data is not my strong point, so feel free to give me other ideas. Once I get it into access, I can write sql all day. Can I get some ideas on how to go from tab1 to tab2?



    Thanks!

    CoachJohn
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to change colums to values

    With the macro below.

    See the attached file.

    Please Login or Register  to view this content.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    06-14-2014
    Posts
    4

    Re: How to change colums to values

    Thank you Oeldere!

    I see how that works. Very nice. I am not a vb, but I do partially understand this. Now if I would like to add the id before the date, what would I need to change on this macro?

    Thank you again! This is helping a lot.

    CoachJohn

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to change colums to values

    with a few functions
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    06-14-2014
    Posts
    4

    Re: How to change colums to values

    Never mind I figured it out. Thanks for your help!!

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to change colums to values

    @CoachJohn

    Since you got help from several members, it is good to refer to whom you responding.

    Thanks for the reply.

    Glad I could help you.

  7. #7
    Registered User
    Join Date
    06-14-2014
    Posts
    4

    Re: How to change colums to values

    My bad oeldere! I thought I mentioned your name.

    I took your solution and modified it to add more header information. I am not real familiar with functions. I have recorded some basic macros but never using VBA. In my new role, this will really come in handy so I am going to learn so I can help myself and others!

    Happy Fathers Day!

    Sincerely,
    CoachJohn

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to change colums to values

    It was a more general statement.

    thanks for the reply.

    glad i could help you.

+ 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. Compare values in two colums
    By p3x935 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-30-2014, 12:32 PM
  2. change rows to colums
    By Jerry.Peoples in forum Excel General
    Replies: 4
    Last Post: 03-16-2010, 11:16 AM
  3. Merge Sheets into one, and change rows to colums
    By MSTARS in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-21-2009, 05:11 PM
  4. [SOLVED] how can i change my sprdsht to list info from colums into rows
    By kate in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-18-2006, 11:00 AM
  5. [SOLVED] Change colour of bars/lines in charts when data in rows/colums
    By RodP in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-27-2005, 01: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