+ Reply to Thread
Results 1 to 6 of 6

Multiple columns to a single column

Hybrid View

  1. #1
    Registered User
    Join Date
    02-06-2015
    Location
    Baton Rouge, LA USA
    MS-Off Ver
    MicrosoftOffice 2013
    Posts
    3

    Multiple columns to a single column

    Hello and thanks in advance,

    I've been provided a data set that I need to rearrange for statistical analysis. Columns represent responses from a single person to a questionnaire. Rows represent each question. I've deleted the questions and redacted any names, etc.. There are 9 columns in my attachment although the full data set from one file has approximately 50 columns.

    For statistical purposes I need to convert all the columns to a single column of data. I basically need to cut the data column B and paste it directly under column A, and so on. I can do this one column at a time but I have approximately 50 columns in each file and I have about 5 files. Hopefully you can see my need for some easier way to do this and if I attached the file incorrectly feel free to verbally flog me.

    Thank you in advance. ....... Rhett
    Attached Files Attached Files

  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,842

    Re: Multiple columns to a single column

    Do you want to retain the blanks that occur throughout the data?

    Pete

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

    Re: Multiple columns to a single column

    Put this formula in cell K2:

    =INDEX(A:I,MOD(ROWS($1:1)-1,41)+2,INT((ROWS($1:1)-1)/41)+1)

    Apply a Custom Format to that cell of:

    General;;

    (this will turn zeroes to blanks) then copy the formula down as far as you need to.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    02-06-2015
    Location
    Baton Rouge, LA USA
    MS-Off Ver
    MicrosoftOffice 2013
    Posts
    3

    Re: Multiple columns to a single column

    Pete,

    The blanks must be retained. Those blanks are equivalent to NA (not applicable). I'll try that formula you suggested and I'll update.

    Regarding the blanks I'll ultimately put something in that space. Once I get it all in one column I can sort and then stick a 0 or something there. The data are responses to a question where the responses are a Likert scale.

    Thanks for your help. Rhett

  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,842

    Re: Multiple columns to a single column

    I suggest you do not use a zero to fill those blanks, as that will just show as blank with the formatting I suggested - use "NA" or "x" or -1 ...

    Pete

  6. #6
    Registered User
    Join Date
    02-06-2015
    Location
    Baton Rouge, LA USA
    MS-Off Ver
    MicrosoftOffice 2013
    Posts
    3

    Re: Multiple columns to a single column

    Pete, it works like a charm and the zeros are what I wanted anyway for now. Sweeeeet!!!

    Thanks again ............. Rhett

+ 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. Pasting multiple columns into a single column
    By amphinomos in forum Excel General
    Replies: 5
    Last Post: 06-21-2013, 11:58 AM
  2. Single Column to Multiple Columns
    By hscmsf in forum Excel General
    Replies: 1
    Last Post: 02-08-2012, 02:38 PM
  3. multiple columns to single column
    By beatrice25 in forum Excel General
    Replies: 8
    Last Post: 06-27-2008, 05:05 PM
  4. convert single column to multiple columns
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 12-07-2007, 12:40 PM
  5. Import is single column; want multiple columns
    By BSteely in forum Excel General
    Replies: 2
    Last Post: 01-29-2007, 02:45 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