Show a list of data based on a value in a column on another sheet

carura

New Member
Joined
Sep 20, 2011
Messages
25
Hi Excel masters.

I just need help with the formula to use in my report

Let's say I have a summary table on Sheet 1
6000 rows of data on sheet 2.

In Sheet 2
I have 3 columns, Name, Month and Score.
Name Column (A) has names of students
Month Column (B) has months January, February and so on.
Score Column (C) has data from Green, Yellow and Red.
Red is if they failed.

In the summary table on Sheet 1, I need to show all the names that got a "Red" Score. And their corresponding months.

It should look like this.

Month l Name l Score
-----------------------------------------
January l Mike J l Red
-----------------------------------------
March l Joe M l Red


If you have any idea please respond as soon as you can.

Thanks!:):)
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
maybe something like..

Excel 2012
ABCDEFG
JanuaryMikeRedMikeJanuaryRed
MarchJoeRed JoeMarchRed
JanuaryMikeGreenMaryFebruaryRed
MarchJoeRed
FebruaryMaryRed
MarchAdamRed

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: #FCE4D6"]Month[/TD]
[TD="bgcolor: #FCE4D6"]Name[/TD]
[TD="bgcolor: #FCE4D6"]Score[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #FFFF00"]Name[/TD]
[TD="bgcolor: #FFFF00"]Month[/TD]
[TD="bgcolor: #FFFF00"]Score[/TD]

[TD="align: center"]2[/TD]

[TD="align: right"][/TD]

[TD="align: center"]3[/TD]

[TD="align: right"][/TD]

[TD="align: center"]4[/TD]

[TD="align: right"][/TD]

[TD="align: center"]5[/TD]

[TD="align: right"][/TD]

[TD="align: center"]6[/TD]

[TD="align: right"][/TD]

[TD="align: center"]7[/TD]

[TD="align: right"][/TD]

</tbody>
Sheet2

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Array Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #DAE7F5"]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: #DAE7F5"]E2[/TH]
[TD="align: left"]{=IF(ROWS($E$2:$E2)>COUNTIF(Sheet2!$C$2:$C$7,"Red"),"",INDEX(Sheet2!B$2:B$7,SMALL(IF(Sheet2!$C$2:$C$7="Red",ROW(Sheet2!$A$2:$A$7)-ROW(Sheet2!$A$2)+1),ROWS($E$2:$E2))))}[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #DAE7F5"]F2[/TH]
[TD="align: left"]{=IF(ROWS($E$2:$E2)>COUNTIF(Sheet2!$C$2:$C$7,"Red"),"",INDEX(Sheet2!A$2:A$7,SMALL(IF(Sheet2!$C$2:$C$7="Red",ROW(Sheet2!$A$2:$A$7)-ROW(Sheet2!$A$2)+1),ROWS($E$2:$E2))))}[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #DAE7F5"]G2[/TH]
[TD="align: left"]{=IF(ROWS($E$2:$E2)>COUNTIF(Sheet2!$C$2:$C$7,"Red"),"",INDEX(Sheet2!C$2:C$7,SMALL(IF(Sheet2!$C$2:$C$7="Red",ROW(Sheet2!$A$2:$A$7)-ROW(Sheet2!$A$2)+1),ROWS($E$2:$E2))))}[/TD]
[/TR]
</tbody>[/TABLE]
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top