Find and return a count and data from multiple columns

jo3810

New Member
Joined
Sep 11, 2017
Messages
1
Hi,

I have a spreadsheet which lists students, their instructors names, actual hours of teaching and a calculation (diff).

I need to be able to do two things:

1. Create a summary for each instructor which counts the number of times each instructors time is over 0.2 (in the 'Diff' column) for all students. I guess that means having a function that uses a vlookup to find the instructors name and counts only if the 'Diff' column is over 0.2?

2. Create a summary for each instructor which returns a list of the numbers which are over 0.2 in the Diff column so we can see what the amount over each time the instructor is going?

Is this possible or am I going about finding this information in a long-winded way?

I also want to ensure that if cells are blank these functions don't return errors.

[TABLE="width: 616"]
<tbody>[TR]
[TD="colspan: 3"]Gian
[/TD]
[TD="colspan: 3"]Johnson
[/TD]
[TD="colspan: 3"]Koln
[/TD]
[/TR]
[TR]
[TD]Instructor
[/TD]
[TD]Actual Hours
[/TD]
[TD]Diff
[/TD]
[TD]Instructor
[/TD]
[TD]Actual Hours
[/TD]
[TD]Diff
[/TD]
[TD]Instructor
[/TD]
[TD]Actual Hours
[/TD]
[TD]Diff
[/TD]
[/TR]
[TR]
[TD]S.KING
[/TD]
[TD]1.5
[/TD]
[TD]0.1
[/TD]
[TD]S.KING
[/TD]
[TD]1.5
[/TD]
[TD]0.1
[/TD]
[TD]S.KING
[/TD]
[TD]1.5
[/TD]
[TD]0.1
[/TD]
[/TR]
[TR]
[TD]G.LIU
[/TD]
[TD]1.4
[/TD]
[TD]0.0
[/TD]
[TD]G.LIU
[/TD]
[TD]1.4
[/TD]
[TD]0
[/TD]
[TD]G.LIU
[/TD]
[TD]1.4
[/TD]
[TD]0
[/TD]
[/TR]
[TR]
[TD]G.LIU
[/TD]
[TD]1.4
[/TD]
[TD]0.0
[/TD]
[TD]G.LIU
[/TD]
[TD]1.4
[/TD]
[TD]0
[/TD]
[TD]G.LIU
[/TD]
[TD]1.4
[/TD]
[TD]0
[/TD]
[/TR]
[TR]
[TD]G.LIU
[/TD]
[TD]1.5
[/TD]
[TD]0.1
[/TD]
[TD]G.LIU
[/TD]
[TD]1.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.KING
[/TD]
[TD]2.2
[/TD]
[TD]0.7
[/TD]
[TD]S.KING
[/TD]
[TD]2.2
[/TD]
[TD]0.7
[/TD]
[TD]S.KING
[/TD]
[TD]2.2
[/TD]
[TD]0.7
[/TD]
[/TR]
[TR]
[TD]S.KING
[/TD]
[TD]1
[/TD]
[TD]0.0
[/TD]
[TD]S.KING
[/TD]
[TD]1
[/TD]
[TD]0
[/TD]
[TD]S.KING
[/TD]
[TD]1
[/TD]
[TD]0
[/TD]
[/TR]
[TR]
[TD]S.KING
[/TD]
[TD]0
[/TD]
[TD]-1.0
[/TD]
[TD]S.KING
[/TD]
[TD]0
[/TD]
[TD]-1
[/TD]
[TD]S.KING
[/TD]
[TD]0
[/TD]
[TD]-1
[/TD]
[/TR]
</tbody>[/TABLE]

I'm not sure how to add an example spreadsheet so have pasted an example of the data above.

TIA
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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