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.
 

Some videos you may like

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

gaz_chops

Well-known Member
Joined
Apr 29, 2003
Messages
6,468
Platform
  1. MacOS
Welcome to the forum.

Try sumifs, something like

=SUMIFS(Marks Range,Names Range,A3,SUMMARY!A2:AQM52,">="&E2,SUMMARY!A2:AQM52,"<="&F2)
 

gaz_chops

Well-known Member
Joined
Apr 29, 2003
Messages
6,468
Platform
  1. MacOS
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:

Watch MrExcel Video

Forum statistics

Threads
1,127,420
Messages
5,624,693
Members
416,041
Latest member
behnejm

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
Top