Two-Way look up with criteria between two dates

herica

New Member
Joined
Feb 19, 2018
Messages
2
Below is a mock example of my spreadsheet.

Column B has the names of Tutors who deliver training hours to the Students listed in Column A. And Colums C1:I1 have all the dates for every month (showing is just 23Jan-31Jan).

SS#1
ABCDEFGHI
1StudentTutor23-Jan24-Jan25-Jan26-Jan29-Jan30-Jan31-Jan
2JoshBob T2:00
3NicoleBob T2:00
4CaitieAmanda M1:30
5HannahRaymond F
6DevonLexi A2:002:00

<tbody>
</tbody>

I need a formula to give me the underlined answers in the below sample SS (e.g. I need to add up all training hours for each Tutor between 2 dates, and I need these two dates to be able to be changed).

SS#2
ABC
1Period to be summed29-Jan31-Jan
2TutorTotal DeliveredDuring this period
3Amanda M1:30
4Bob T4:00
5Lexi A0:00
6Raymond F2:00

<tbody>
</tbody>

The 2 most promising formulas I have are these:


=SUMIFS('SS#1'!C1:I1,'SS#1'!B:B,B2,'SS#1'!C1:I1,">="&'SS#2'!B1,'SS#2'!C1:I1,"<="&C1
which gives me a #VALUE error

And:


=SUMPRODUCT(--('SS#1'!C1:I1>='SS#2'!B1)*('SS#1'!C1:I1<='SS#2'!C1)*('SS#1'!B:B=B2))

This 'works' however gives me a value of 0 so something isn't working there... Does anyone have any ideas? :(
 

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
Maybe something like this:
Excel Workbook
ABCDEFGHIJ
11. 1StudentTutor23-Jan24-Jan25-Jan26-Jan29-Jan30-Jan31-Jan
22JoshBob T2:00
33NicoleBob T2:00
44CaitieAmanda M1:30
55HannahRaymond F
66DevonLexi A2:002:00
7SS#2
8
9ABC
101Period to be summed29-Jan31-Jan
112TutorTotal DeliveredDuring this period
123Amanda M1:30
134Bob T4:00
145Lexi A2:00
156Raymond F0:00
Sheet
 
Upvote 0
Thank you so much! Glad it was actually something 'simple'. Annoying it doesn't work across different spreadsheets/worksheets but hey, at least there's a version that works!
 
Upvote 0

Forum statistics

Threads
1,214,792
Messages
6,121,612
Members
449,039
Latest member
Mbone Mathonsi

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