+ Reply to Thread
Results 1 to 7 of 7

Making 13 columns into one column

  1. #1
    Registered User
    Join Date
    02-18-2015
    Location
    Nevada, USA
    MS-Off Ver
    2010
    Posts
    28

    Making 13 columns into one column

    So I have monthly data and then an annual average. 13 columns in total. Here is a short example.

    01-Jan 02-Feb
    1 6
    2 7
    3 8
    4 9
    5 10

    I am trying to get it to look as such

    01 1
    01 2
    01 3
    01 4
    01 5
    02 6
    02 7
    02 8
    02 9
    02 10

    There are more but I thought this short example would be sufficient. Attachments seem to take forever on here. If you really need it, I can supply one.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Making 13 columns into one column

    Quote Originally Posted by twilcox1978 View Post
    ... Attachments seem to take forever on here. If you really need it, I can supply one ...
    It would help to see the overall picture and to play about with some formulae.

    Pete

  3. #3
    Registered User
    Join Date
    02-18-2015
    Location
    Nevada, USA
    MS-Off Ver
    2010
    Posts
    28

    Re: Making 13 columns into one column

    example.xlsxLet me try. The last time, it took over an hour to upload a spreadsheet with two columns.
    Last edited by twilcox1978; 03-20-2015 at 11:44 AM.

  4. #4
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Making 13 columns into one column

    Here, try this code
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Making 13 columns into one column

    Put this formula in, say, A20:

    =INDEX($A$1:$M$1,INT((ROWS($1:1)-1)/10+1))

    Format that cell as a date by using the Format Painter icon from cell A1. Then put this formula in B20:

    =INDEX($A$2:$M$11,MOD(ROWS($1:1)-1,10)+1,INT((ROWS($1:1)-1)/10)+1)

    Then copy both formulae down as far as required.

    Hope this helps.

    Pete

  6. #6
    Registered User
    Join Date
    02-18-2015
    Location
    Nevada, USA
    MS-Off Ver
    2010
    Posts
    28

    Re: Making 13 columns into one column

    I am getting a FALSE value in Cell A20. Does it matter that cell A1 is a custom format?

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Making 13 columns into one column

    Here's your file back with the formulae in, so you can check if you typed everything properly.

    Hope this helps.

    Pete
    Attached Files Attached Files

+ 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. Replies: 1
    Last Post: 08-02-2014, 04:31 AM
  2. [SOLVED] Sort by the multiple of 2 columns without making another column?
    By niko79542 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-14-2012, 09:46 AM
  3. Replies: 1
    Last Post: 07-10-2010, 09:38 PM
  4. Replies: 5
    Last Post: 06-16-2005, 02:05 PM
  5. Making a One Column Directory from Two Columns
    By Dennis Hughes in forum Excel General
    Replies: 1
    Last Post: 01-21-2005, 12:06 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