+ Reply to Thread
Results 1 to 4 of 4

range cells to row

  1. #1
    Forum Contributor
    Join Date
    09-02-2013
    Location
    Netherlands
    MS-Off Ver
    Office 365 (2013)
    Posts
    268

    range cells to row

    Hey,

    I think my question is very easy to solve, so I don't have an example yet.

    I have a three ranges of data
    B19:B38
    C19:C38
    I19:I39

    I need to transfer that to:
    B19:B38 --> column 2, 5, 8, 11, ... 59
    C19:C38 --> column 3, 6, 9, 12, ... 60
    I19:I39 --> column 4, 7, 10, 13, ... 61, 62 (I39 needs to be put last)

    How can I find a way to script this easily?

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: range cells to row

    Please Login or Register  to view this content.
    not sure where in column 2 you want it to go so change the 1 in cells(1,count) to the row you want.

    That is for the first range, you can apply the same sort of thing to the others.

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: range cells to row

    Try:
    Please Login or Register  to view this content.
    You don't specify which row to paste to - this uses row 1, so change as necessary. This does all 3 ranges in one pass.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Forum Contributor
    Join Date
    09-02-2013
    Location
    Netherlands
    MS-Off Ver
    Office 365 (2013)
    Posts
    268

    Re: range cells to row

    ah yes, this was what I was looking for.
    might be the time and day but I could not figure out how to do this without writing 62 different lines.

    The "1" depends on the situation, so that won't be a problem.

    Thanks again and thanks for all the other times you helped me!

+ 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. Count a Range of cells if another range of cells meets criteria
    By mjg060468 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-21-2013, 02:57 PM
  2. [SOLVED] Macro needed to clear cells in range based on value of cells in another range
    By msmith7113 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2013, 12:32 AM
  3. [SOLVED] Count cells in a range greater than cells in another range
    By D.Lovell in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-14-2013, 03:20 PM
  4. [SOLVED] VBA Copy a range of cells values using the range of cells in a formula (which will change)
    By murtaep in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 06-05-2012, 07:59 AM
  5. Replies: 2
    Last Post: 05-31-2012, 05:37 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