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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
maybe something like..

Excel 2012
ABCDEFG
1MonthNameScoreNameMonthScore
2JanuaryMikeRedMikeJanuaryRed
3MarchJoeRed JoeMarchRed
4JanuaryMikeGreenMaryFebruaryRed
5MarchJoeRed
6FebruaryMaryRed
7MarchAdamRed

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

Array Formulas
CellFormula
E2{=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))))}
F2{=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))))}
G2{=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))))}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,988
Messages
6,122,620
Members
449,092
Latest member
amyap

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