Match name and return sum between date range

ExceLoki

Well-known Member
Joined
Dec 13, 2021
Messages
542
Office Version
  1. 365
Platform
  1. Windows
i'm trying to return a sum value from a range of data by matching a name and between a set of dates. i've got the dates in the results sheet in two columns.
i'm stuck, any help is appreciated. and for some reason xl2bb keeps freezing my excel so i had to just copy the sheets

here is what i was trying to use in sheet7 column I:
Excel Formula:
=SUMIFS(Sheet6!$C$5:$Z$8,Sheet6!2:2,">="&A2,Sheet6!2:2,"<="&B2,Sheet6!A:A,D2)

here is a sample of data, coulmn A is a lookup for the name matching the email. the email and the rest is from a pivot table:
Sheet6
ABCDEFGHIJKLMNOPQRSTUVWXYZ
NameRow Labels04/01/202204/02/202204/04/202204/05/202204/06/202204/07/202204/08/202204/11/202204/12/202204/13/202204/14/202204/15/202204/18/202204/19/202204/20/202204/21/202204/22/202204/23/202204/25/202204/26/202204/27/202204/28/202204/29/202204/30/2022
Bob SmithBob.Smith@company.com
11​
9​
9​
8​
1​
9​
9​
6​
5​
6​
7​
3​
7​
8​
5​
11​
10​
1​
Jane DoeJane.Doe@company.com
5​
9​
5​
8​
5​
6​
4​
8​
8​
1​
2​
4​
5​
8​
1​
1​
1​
2​
1​
2​
3​
5​
9​
Bob DoeBob.Doe@company.com
1​
2​
1​
1​
7​
8​
1​
2​
1​
4​
1​
7​
1​
2​
2​
4​
9​
3​
Jane SmithJane.Smith@company.com
2​
1​
3​
7​
9​
6​
4​
11​
1​
1​
3​
1​
4​
8​
9​
7​
9​
4​

here is a sample of the result:
Sheet7
ABCDEFGHI
Start DateEnd DateReport RanFull Namefield 1field 2field 3field 4Cases Worked
4/1/20224/7/20224/9/2022Bob Smith37
4/1/20224/7/20224/9/2022Jane Doe38
4/1/20224/7/20224/9/2022Bob Doe3
4/1/20224/7/20224/9/2022Jane Smith13
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Not just formated as dates, are they all really numbers ?
It's possible to have a text string, that is formated as a date, but still Excel treats it as a text string.
You can test this with a formula like
=istext(a1)
If the result is TRUE, you have a text string, not a date, even if it looks like a date.

I can't be certain that this is your problem, but it does seem like the most likely one.
 
Upvote 0
so what i ended up doing was adding a helper column to change the date from the pivot table to an actual date.
slight adjustment to the formula and it works great!
 
Upvote 0
Glad you sorted it & thanks for the feedback.
 
Upvote 0
thanks to both of you for the help. i know i've done these before, but was getting stuck and frustrated.
 
Upvote 0

Forum statistics

Threads
1,223,711
Messages
6,174,029
Members
452,542
Latest member
Bricklin

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