multiple criteria two sheets

isabelle1989

New Member
Joined
Jan 6, 2017
Messages
11
Thank you in advance for your help - I do not have a lot of experience in Excel but am trying to create a way to look quickly at pertinent information rather than scroll through a worksheet by hand. Specifically, I am trying to see how many students each teacher has at any given time. This is an after school program where the days and times that students come can change and we have limits of how many students each teacher can have.

After attempting to teach myself how to do this, I came up with this formula based on multiple "how-to" articles and forum posts:

=INDEX(Sheet1!$C$2:$G$100, MATCH(1, (Sheet1!$F$2:$F$100=Sheet2!D6)*(Sheet1!$C$2:$C$100=Sheet2!E5), 0), Sheet1!4)

This formula is attempting to single out one teacher and one time from an array of cells on a different worksheet. It is obviously wrong which is why I'm asking for help. If you need any other information, please ask. Please be kind, I've had no training in Excel at all.

With much thanks,

Isabelle
 
Hi again!

Thanks so much for everything! Everything looks good except that sometimes we have students (not in the sample) who have class from 5:30 - 6:00 only, but they are still being counted in the second time slot. Any way to fix that?

I'm happy to help.

What would you like the amount to be for 1/2 hour students? Would you mind posting an example of your issue and what you would rather see?

Thanks,

D
 
Upvote 0

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Thank you!

Here is a sample from sheet 1 - let's just look at the THU-5:30 students who have Caryn:

Time/Day Math English Teacher 1 Teacher 2

THU-5:30XCaryn
THU-5:30XCaryn
THU-5:30XTodd
THU-4:30XCaryn
WED-6:30XXToddTodd
WED-6:30XXDawnDawn
WED-5:30XXCarynCaryn
SAT-11:00XXToddTodd
SAT-10:00XXToddTodd
WED-5:30XTodd
THU-5:30XCaryn

<colgroup><col><col span="4"></colgroup><tbody>
</tbody>

Based on this data, Caryn has 2 students from 5:30 - 6:00 and 1 student from 6:00 - 6:30.

Here is the table from sheet 2 for Thursday for Caryn at 5:30 and at 6:00:

THU-5:30THU-6:00
23

<!--StartFragment--> <colgroup><col width="65" span="2" style="width:65pt"> </colgroup><tbody>
<!--EndFragment--></tbody>

It looks to me as though the two students from 5:30 are being counted during the second half hour.

Thanks again!

Is
 
Upvote 0
Thank you!

Here is a sample from sheet 1 - let's just look at the THU-5:30 students who have Caryn:

Time/Day Math English Teacher 1 Teacher 2

THU-5:30XCaryn
THU-5:30XCaryn
THU-5:30XTodd
THU-4:30XCaryn
WED-6:30XXToddTodd
WED-6:30XXDawnDawn
WED-5:30XXCarynCaryn
SAT-11:00XXToddTodd
SAT-10:00XXToddTodd
WED-5:30XTodd
THU-5:30XCaryn

<tbody>
</tbody>

Based on this data, Caryn has 2 students from 5:30 - 6:00 and 1 student from 6:00 - 6:30.

Here is the table from sheet 2 for Thursday for Caryn at 5:30 and at 6:00:

THU-5:30THU-6:00
23

<tbody>
</tbody>

It looks to me as though the two students from 5:30 are being counted during the second half hour.

Thanks again!

Is

If you put a filter on the table: With row 1 highlighted, click on the "Home" tab on the toolbar and on the far right side select "Sort & Filter" then "Filter". Dropdown column A and select only Thur-6:00 and add how many students Caryn has. Does it add up to 3?
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,665
Members
449,462
Latest member
Chislobog

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