Consulting

Results 1 to 7 of 7

Thread: Moving data from columns to rows

  1. #1
    VBAX Regular
    Joined
    Jan 2008
    Posts
    7
    Location

    Moving data from columns to rows

    Hi everyone,

    I need some help moving data from columns to rows. Right now I have my data generated in 6 different columns (A:F). After the data is generated, I want this data to be copied into a new worksheet and be consolidated into the first column (column A). The amount of data on each column is different each time, i.e sometimes column A might have 4 entries sometimes it might have 44 entries. The same with the other columns.

    I appreciate your help.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Post an example workbook for us to work with.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Jan 2008
    Posts
    7
    Location
    Here you go. I would like the data on "CurrentSheet" to consolidate on the first column of "NewSheet". Entries for each column on "CurrentSheet" might vary each time.
    Thank you

  4. #4
    Knowledge Base Approver VBAX Guru GTO's Avatar
    Joined
    Sep 2008
    Posts
    3,368
    Location
    Greetings Mirko,

    XLD may well be onto what your goal is, but for us who a wee bit weaker in the noggin, are we looking to:

    Place the values that are underneath Agios Dometios Municipality underneath the values that are currently under Lefkosia Municipality (and so on, appending the column)?

    Or:

    Are we looking to transpose the columns to rows, where the headers would be in column A, and for A1 we would have Lefkosia Municipality,
    B1 would have Lefkosia Παστέρ Paster 16-Γ1, C1 would be Lefkosia Κυθήρων Kythiron -3-Β4 and so on?

    Mark

  5. #5
    VBAX Expert
    Joined
    Feb 2005
    Location
    Nanaimo, British Columbia, Cananda
    Posts
    568
    Location
    Hi mirko,

    If you don't want the headers to be copied change r = 1 to r = 2 in the start of the code.
    Cheers,

    dr

    "Questions, help and advice for free, small projects by donation. large projects by quote"

    http:\\www.ExcelVBA.joellerabu.com

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by mirko
    Here you go. I would like the data on "CurrentSheet" to consolidate on the first column of "NewSheet". Entries for each column on "CurrentSheet" might vary each time.
    Thank you
    Hey, I will be in Cyprus tomorrow. Coming to Nicosia for a week.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  7. #7
    VBAX Regular
    Joined
    Jan 2008
    Posts
    7
    Location
    rbrhodes: Thank you so much!

    GTO: The first one was the one I wanted

    xld: Make sure you drink a lot of water and bring minimal clothing. The heat is almost unbearable

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •