+ Reply to Thread
Results 1 to 4 of 4

Moving a group of cells based on its value in a column to a different column

  1. #1
    Registered User
    Join Date
    12-03-2012
    Location
    São Paulo
    MS-Off Ver
    Excel 2007
    Posts
    3

    Moving a group of cells based on its value in a column to a different column

    Hi, I have an extensive data set obtained from a eyetracking program. After cleaning the data, I get 2 columns (really long), one with the name os the stimulus (e.g. 2002.jpg) and another with the pupilsize obtained (each row represents a sample obtained). I want to break this 2 columns in a serie of adjacent columns, where every pair of columns have a different stimulus with its respective pupilsize. There are some images below explaining what I need:

    parte1.jpgparte2.jpg


    The number of stimulus and the number of rows for each stimulus is variable, as well as its name (but they never have the same name). Anyone can help me?

    TIA,

    Gabriel

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Moving a group of cells based on its value in a column to a different column

    please no jpg but xls sample for testing
    If solved remember to mark Thread as solved

  3. #3
    Forum Contributor
    Join Date
    10-19-2012
    Location
    Omaha, Nebraska USA
    MS-Off Ver
    Excel 2010
    Posts
    249

    Re: Moving a group of cells based on its value in a column to a different column

    Gabriel,

    Here is some code that will take the data in Columns A and B of the current sheet and redistribute them per your description in a new sheet.

    Please Login or Register  to view this content.
    Hope that helps,

    Daniel

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Moving a group of cells based on its value in a column to a different column

    Hi TIA,

    If you make a Pivot Table from your data you will be able to do statistics on each stimulus without needing to made a different column out of each one Simply put the column A as a row and use it as a filter.

    http://www.homeandlearn.co.uk/excel2...l2007s7p7.html
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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