Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Duplicate Rows - Combining and Flipping

OK.

Select your column A (with the names) and use Data / Filter then choose Advanced Filter.....
Select "Filter to another location" select G1 as the location, and check "Unique records only"
and click OK. That will create a list of your students, starting in G2 (the data header from A1
should be in G1).

Then in H2, enter the formula
=VLOOKUP(G2,A:C,3,FALSE)

and in I2, array-enter (enter using Ctrl-Shift-Enter) the formula
=IF(COUNTIF($A:$A,$G2)=COLUMN(B$1),INDEX($C:$C,SM ALL(IF($A$2:$A$1000=$G2,ROW($A$2:$A$1000)),COLUMN( B$1))),"")

Copy I2 across the row until you get some blank cells, then copy H2 and the cells that you just
filled down to match your list of students. When you are done, make sure that there is at least one
formula cell returning a blank at the end of every row. Then copy those cells and paste special
values, and you can delete your original data columns.

HTH,
Bernie
MS Excel MVP


"Cytorak" wrote in message
...
The end result will be to condense each student to one record with all
their grades in one row. After each student only has one record, I
want to get an average grade for each student for each quarter. I
don't necessarily need headers per quarter; I just need the name and
the numbers all in one horizontal row.

On Jan 20, 10:40 am, "Bernie Deitrick" <deitbe @ consumer dot org
wrote:
What is it that you actually want to do? (The best approach depends on what your desired end
result
is...) Do you want an overall average? Or to produce a report with the class and quarter values
included as headers?

HTH,
Bernie
MS Excel MVP

"Cytorak" wrote in message

...

I have an extract from a student information system in Excel that
looks like this.


Student Class Grade Quarter
John Chemistry 70 1
John Chemistry 80 2
John Math 95 1
John Math 100 2
Alice Chemistry 67 1
Alice Chemistry 47 2
Alice Math 88 1
Alice Math 85 2


What I would like is this:


John 70 80 95 100
Alice 67 47 88 85


However, since there are hundreds of students, this would be an
extreme pain to do by hand. Is there any built-in formula or function
in Excel that can do this?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining multiple rows with duplicate info -- help! Michael[_8_] Excel Discussion (Misc queries) 1 November 24th 09 06:34 PM
Combining duplicate rows into one ceci Excel Discussion (Misc queries) 2 February 4th 09 02:42 AM
Combining data from column while deleting duplicate rows [email protected] Excel Programming 1 January 14th 08 02:01 AM
combining duplicate rows jezzica85 Excel Discussion (Misc queries) 1 March 18th 06 02:30 PM
Combining duplicate records(rows) Jen Excel Worksheet Functions 3 February 16th 05 03:54 PM


All times are GMT +1. The time now is 02:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"