Vlookup match sum between dates

LDHall

New Member
Joined
Jun 13, 2015
Messages
1
I am a teacher with a spreadsheet that contains all my pupils from a particular class and the marks they scored on questions different days.

I want to be able to select a start date and end date from a list I have set up on all possible dates and excel to calculate how many marks that each pupil got between those dates.

I have the following already set up which returns how many points a particular pupil scored on the start date:

=VLOOKUP(A3,SUMMARY!A2:AQM52,MATCH(E2,SUMMARY!A2:AQM2,0),FALSE)

and this returns how many points a particular pupil scored on the end date:

=VLOOKUP(A3,SUMMARY!A2:AQM52,MATCH(F2,SUMMARY!A2:AQM2,0),FALSE)


A3 is the cell with the pupil's name, A2:AQM52 are all the possible dates, E2 is the cell I have set up for the start date, F2 the end date.

I just can't figure out how to sum between these two selected dates.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Welcome to the forum.

Try sumifs, something like

=SUMIFS(Marks Range,Names Range,A3,SUMMARY!A2:AQM52,">="&E2,SUMMARY!A2:AQM52,"<="&F2)
 
Upvote 0
Sorry I misread your ranges!

Try sumproduct

=SUMPRODUCT((SUMMARY!$A$2:$A$52=$A$3)*(SUMMARY!$B$2:$AQM$2>=$B$15)*(SUMMARY!$B$2:$AQM$2<=$C$15)*(SUMMARY!$B$3:$AQM$52))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,217,347
Messages
6,136,045
Members
449,981
Latest member
kjd513

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