+ Reply to Thread
Results 1 to 8 of 8

Psychological research

  1. #1
    Registered User
    Join Date
    02-14-2017
    Location
    Slovakia
    MS-Off Ver
    2013
    Posts
    3

    Psychological research

    Hi.

    I am working on psychological research, and I need your help. Collecting of my data is finished, so it is time to make them look good (and useable). I can't show you my data (because of personal info included), but I will try to write down what I need.
    My questionnaire had a few different types of tests. On of them (all made online) exported me results in text form (36 variables, 560 people - that's way too much data to overwrite it manually to individual cells. What I need excel to do (hopefully, it os possible).

    1. Find cell containing specific variable name (ex. Age in cell A139).
    2. Copy numeral value of that variable in the cell below to chosen cell (ex. copy value from A140 to B20).
    3. Find cell containing specific variable name, which is next (ex. Age in cell A687) - yes, there is about 500 rows of another data between two same variables.
    4. Copy numeral value of that variable in the cell below to chosen cell (ex. copy value from A688 to B21).
    5. Repeat all this till end of the sheet.

    So my result will be all "Age" data in cells from B20 to B580, not stretched all the way somewhere in the 270000 rows of data.

    Is there any way how to do it?

    Thank you

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

    Re: Psychological research

    Put this formula in cell B20:

    =INDEX(A:A,(ROWS($1:1)-1)*548+140)

    then copy down into B21, B22 etc. as far as you need to. It will return the equivalent of A140, A688, A1236 etc. in successive cells.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    02-14-2017
    Location
    Slovakia
    MS-Off Ver
    2013
    Posts
    3

    Re: Psychological research

    Thank you very much, but number of other data between 2 same variables is not always the same - sometimes it is 480, sometimes 520.. there is no pattern in this...

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Psychological research

    Will you please attach a sample Excel workbook?

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    02-14-2017
    Location
    Slovakia
    MS-Off Ver
    2013
    Posts
    3

    Re: Psychological research

    Thank you... I am sending data sample.. there are 3 responses (about 1800 rows).. In collum A there are raw data (begining of next response is
    marked). There are also sample results for one variable.. I hope, it is understandable.

    Thanks
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: Psychological research

    Try this ...

    =IFERROR(INDEX(A:A,SMALL(IF($A$1:$A$270000=$K$1,ROW($A$2:$A$270001)),ROWS($K$1:K1)*2-1)),"")

    Enter with Ctrl+Shift+Enter.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,151

    Re: Psychological research

    Try

    Insert new row 1 (blank)

    in B2

    =IF(AND(A2=$K$2,ISNUMBER(A3+0)),MAX($B$1:B1)+1,"")

    This finds all occurences of K2 value which are followed by number in next row

    Copy down list

    in K3

    =INDEX($A$2:$A$5000,MATCH(ROWS($1:1),$B$2:$B$5000,0)+1)

    Copy down

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,151

    Re: Psychological research

    Try

    Data starting in row 2

    =IFERROR(INDEX($A$3:$A$27001,SMALL(IF($A$2:$A$27000=$K$2,IF(ISNUMBER($A$3:$A$27001+0),ROW($A$3:$A$27001)-ROW($A$3)+1,""),""),ROWS($A$3:A3))),"")

    Or

    =IFERROR(INDEX($A$3:$A$5001,SMALL(IF(($A$2:$A$5000=$K$2)*(ISNUMBER($A$3:$A$5001+0)),ROW($A$3:$A$5001)-ROW($A$3)+1,""),ROWS($A$3:A3))),"")

    Enter with Ctrl+Shift+Enter

+ 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. Research box
    By BKG SPORTS in forum Excel General
    Replies: 0
    Last Post: 04-16-2013, 12:36 PM
  2. What to research??
    By iansaunders1980 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-26-2008, 11:02 AM
  3. Research Toolbar
    By haze in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 12-13-2007, 01:49 PM
  4. [SOLVED] Best research method
    By Maileen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-29-2006, 02:27 PM
  5. Best research method
    By Maileen in forum Excel General
    Replies: 1
    Last Post: 03-28-2006, 07:45 AM
  6. Research
    By Marcio in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-19-2005, 03:05 PM
  7. [SOLVED] research bar
    By ATLASBLANCHE in forum Excel General
    Replies: 0
    Last Post: 07-21-2005, 06:05 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