+ Reply to Thread
Results 1 to 5 of 5

Inserting columns with numbers relative to previous data

  1. #1
    Registered User
    Join Date
    01-19-2012
    Location
    Leeds, UK
    MS-Off Ver
    Excel 2007
    Posts
    2

    Inserting columns with numbers relative to previous data

    Hi there,

    Please can someone give me some advice on the following issue:

    I have a spreadsheet of questionnaire responses which range from 1-7

    For example:

    Respondent Q1
    1 4
    2 3
    3 7
    4 6

    So each row is a new respondent and each column is their response from the scale.

    What I need to do is code the responses into a different form. I need them to be represented as follows:

    Respondent Answer1 Answer2 Answer3 Answer4 Answer 5 Answer 6 Answer 7
    1 0 0 0 1 0 0 0
    2 0 0 1 0 0 0 0

    So that each number then represents the place on the scale from which it was chosen.

    I tried recording a macro but I think this requires something a lot more complex.

    Any advice or tips would be really really appreciated.


    I have attached a sample of the file.


    Thanks in advance

    Lucy.
    Attached Files Attached Files
    Last edited by LucyJ; 01-19-2012 at 09:08 AM. Reason: removing "CODE TAGS"

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Inserting columns with numbers relative to previous data

    Why have you enclosed the question in Code tags
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    01-19-2012
    Location
    Leeds, UK
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Inserting columns with numbers relative to previous data

    It said to in Forum Rules " Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Select your code and click the [#] button at the top of the post window (if you are editing an existing post, press Go Advanced to see the [#] button). The result will appear like this in the post window:"


    Sorry...I've never used this site before and have little knowledge of how to post correctly....

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Inserting columns with numbers relative to previous data

    There's no code in your post, it just looked strange

  5. #5
    Registered User
    Join Date
    12-06-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Inserting columns with numbers relative to previous data

    This should work ok

    Please Login or Register  to view this content.
    Last edited by royUK; 01-19-2012 at 03:17 PM. Reason: add code tags

+ 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