+ Reply to Thread
Results 1 to 9 of 9

Long column to multiple every other

  1. #1
    Registered User
    Join Date
    04-24-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2013
    Posts
    43

    Long column to multiple every other

    Hello everyone
    Hopefully someone can give some steer.

    I have a column with lots and lots of data.
    Under 3 rows of header.
    Ideally I'd like to split the data into multiple columns

    I need every 15 rows to go to a new column on a different sheet except annoyingly the new columns are spaced every other one.. ie D F H J.
    Also the first 3 rows in the new column are headers.

    Andy ideas would be much appreciated.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Long column to multiple every other

    I have assumed that you have your data on Sheet1 in column A, with headers in rows 1 to 3, with data down the column.

    On your other sheet, enter this in cell D1

    =Sheet1!$A1

    and copy to D2:D3. Then in D4, enter the formula

    =INDEX(Sheet1!$A:$A,ROW()+(COLUMN()/2-2)*15)

    and copy that to D5:D18.

    Then copy D1:E18 - note that you need to copy the blank cells in column E as well as the formulas in D - then select from F1:????18 where your selection is an even number of columns that is at least =2*COUNTA(Sheet1!A:A)/15 columns wide. IF the headers already exist in rows 1 to 3 of those columns, then start your copy and paste on row 4.


    OR ---------


    You can use a macro - same assumptions, plus that the other sheet is named Sheet2:

    Please Login or Register  to view this content.
    Last edited by Bernie Deitrick; 03-28-2017 at 05:16 PM.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    04-24-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2013
    Posts
    43

    Re: Long column to multiple every other

    Thanks for your reply.
    I'll try both tomorrow.

    With your first solution. Since I would be copying the blank cells of all the even columns that won't really work.

    Although I never mentioned it..I hope to use the same fix to copy the data from a second long list into every other
    Ie sheet 1 column a split every 15 rows to even columns a/c/e on sheet 2........ and sheet 1 column b split every 15 to odd columns on sheet 2 b/d/f

    I'll try to adapt your macro... many thanks

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Long column to multiple every other

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-24-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2013
    Posts
    43

    Re: Long column to multiple every other

    thanks very much for your help.
    I tried to get it to work but get a runtime error.

    Ive attached the spreadsheet > trying to get column "AA" on Sheet3 to split into Sheet4 column "D" then every other.
    and column "AB" on Sheet3 to split into Sheet4 column "E" then every other.
    Attached Files Attached Files

  6. #6
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Long column to multiple every other

    please check excel sheet name & sheet name in vba macro are different.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  7. #7
    Registered User
    Join Date
    04-24-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2013
    Posts
    43

    Re: Long column to multiple every other

    ahh ok - ooops. thank you
    ive fixed that - new problems:

    is there a way to copy the value only from the source? rather than the formula in that cell?

    when pasting onto the "dec-degrees" sheet can it start in column D row 4?

    attached latest
    Attached Files Attached Files

  8. #8
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Long column to multiple every other

    You can do simple one way. In "Data" sheet in column insert helper column "AJ" & "AK" with simple formula =AA2 (IN "AJ2") & =AB2 (in "AK2) & copy paste down.
    After that select complete AJ & AK coloum "copy" & in same place "paste special" as value.
    After that go to VBA code macro "AA" to "AJ" & "AB" to "AK".

  9. #9
    Registered User
    Join Date
    04-24-2013
    Location
    Scotland
    MS-Off Ver
    Excel 2013
    Posts
    43

    Re: Long column to multiple every other

    cancel this

    i reformatted the input and output to be linear in columns.
    problem solved./

    thansk for everyones help

+ 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. Converting long column to multiple smaller columns
    By bjcowen9000 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-22-2016, 01:54 PM
  2. Take multiple column'S values and APPEND 1 long consecutive column
    By jcpreta in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-28-2015, 07:34 AM
  3. I need to sort data from one long column to multiple rows
    By Iterationfail in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-20-2013, 07:18 AM
  4. From one long column to multiple columns based on value
    By zerospin in forum Excel General
    Replies: 0
    Last Post: 05-26-2011, 01:02 PM
  5. copying multiple columns into one long column
    By panproblems in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2008, 05:20 PM
  6. Multiple columns of data into one long column
    By beatrice25 in forum Excel General
    Replies: 2
    Last Post: 05-20-2006, 08:18 PM
  7. Replies: 2
    Last Post: 03-07-2006, 04:46 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