+ Reply to Thread
Results 1 to 6 of 6

Match data in rows

  1. #1
    Registered User
    Join Date
    09-19-2009
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    13

    Match data in rows

    I have data that contains student test scores, along with the students' names and a student ID number. Each time the students take this test, a new data file is generated. For example, I will have a file for Quarter 1, Quarter 2 and so on. The problem is that each time this test is administered, there may be a student who, for example, took the test Quarter 1, but not Quarter 3. The other part to this is that each data file contains 14 columns of data. I really only need to match up four or five of these columns. I understand that I could delete the unnecessary columns.

    Is there a way to match a key field, such as the student ID, to align data in rows? In the example below, I would like to align the data for student "1" so their "SS" values align in a row, not a column. The other columns (X,Y,Z) represent the other data that is included. As you can see, there are students who have taken this test different numbers of times, represented by the different numbers in the "Name" column.

    Name SS X Y Z
    1 797 8.1 59 54.8
    1 824 9.9 70 61
    2 640 4.6 13 26.3
    3 779 7.4 52 51.1
    4 673 5.1 20 32.3
    4 672 5.1 19 31.5
    5 566 3.7 5 15.4
    5 564 3.6 4 13.1
    5 605 4.1 7 18.9
    6 574 3.8 5 15.4
    7 631 4.5 12 25.3
    7 630 4.5 11 24.2

    Although I am trying to learn to write scripts, this tool would not be one I could use. Thank you in advance for reading what may be a very confusing post!

  2. #2
    Forum Contributor
    Join Date
    08-29-2017
    Location
    Canada
    MS-Off Ver
    Window 2013
    Posts
    127

    Re: Match data in rows

    Yes you can Jd,

    in each row just use formula so I'm assuming their is a raw data paste somewhere? it would be easier if you could upload an excel file that mirrors your example, just make sure all private data is removed , try to use mock data.

    Noah

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Match data in rows

    A few notes...
    1. if this data is being imported, more often than not, imported values come in as text, and need to be converted back to numbers/values
    2. It is almost always better to keep all data on 1 sheet, and run extracts from that. So, if you keep getting new data (as opposed to repeat data with some new scores in it), it would be better to put the data 1 set below the previous.

    With that said, I think you could probably get away with an extract table using a (relatively) simple index/match function
    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    09-19-2009
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Match data in rows

    FDibbins and Noah101,

    Thank you for replying. I have attached a sample file. Although I have deleted some fields,everything is formatted as it was in the original upload.
    Attached Files Attached Files

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,645

    Re: Match data in rows

    Is it are you looking for?
    Attached Files Attached Files
    Quang PT

  6. #6
    Registered User
    Join Date
    09-19-2009
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Match data in rows

    Yes! I neglected to mention that the actual file will have about 600 rows of data. If this does not matter, then I would love to know how you formatted the data so it appeared as it did. Thank you.

+ 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. [SOLVED] Please help, trying to count how many rows match one rows data.
    By Swulvi in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-22-2016, 06:35 AM
  2. [SOLVED] Check Column data in two rows is match for data in two rows on another sheet and return
    By Iain Clarendon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-16-2015, 09:25 PM
  3. Replies: 6
    Last Post: 09-03-2015, 09:51 PM
  4. [SOLVED] Formula to match data in 2 columns and then algin the data in their rows.
    By billrogers184 in forum Excel General
    Replies: 2
    Last Post: 05-11-2015, 10:31 AM
  5. [SOLVED] Formula concatenate data in multiple rows based on match data in a different row.
    By kidkool in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2014, 11:01 AM
  6. 2 rows of data, how to se if there is a match
    By Question99 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-09-2010, 06:04 AM
  7. Replies: 3
    Last Post: 08-18-2009, 09:46 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