Sumproduct help (I think)

daniels012

Well-known Member
Joined
Jan 13, 2005
Messages
5,219
I have teams in Column B and in Column D
I have dates in Column F
In cell N6 I have a date
In Cell N7 I have a date

I want to put a formula to the right that I can copy down (columns "N" and "O") that will count how many times their name appears between those dates.

The rows would be 59 through 305. So B59:B305

Thank You for any assistance,
Michael
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
I tried this in cell N139:
Code:
=sumproduct(($B$59:$B$305=B139)+($D$59:$D$305=B139)+($F$59:$F$305>$N$6)+($F$59:$F$305<$N$7))
But it gives 0 as my answer. It should be at least one that I can see for sure.

Michael

Replace the + with *.
 
Upvote 0
I think I know why!!!!
I need this:
($B$59:$B$305=B139)+($D$59:$D$305=B139)
to be OR instead of AND
My formula is trying to find the name in both column B and D
I need it to find it in B or D

Michael
 
Upvote 0
stefankemp,
I just did, and it comes up with 0?

Michael

So in your data is there at least one row where the name in column B is equal to the name in B139, the name in column D is also equal to the name in B139, and the date in column F is after the date in N6 but before the date in N7?
 
Upvote 0
I tried this:
=sumproduct(($B$59:$B$305=B139)*($F$59:$F$305>$N$6)*($F$59:$F$305<$N$7))+sumproduct(($D$59:$D$305=B139)*($F$59:$F$305>$N$6)*($F$59:$F$305<$N$7))

It is still not giving the results I want?

Michael
 
Upvote 0
=SUMPRODUCT(--($F$59:$F$305>=$N$6),--($F$59:$F$305<=$N$7),($B$59:$B$305=N59)+($C$59:$C$305=N59))

Assuming N59 is the name you're trying to look up and the formula goes in O
 
Upvote 0

Forum statistics

Threads
1,225,149
Messages
6,183,187
Members
453,151
Latest member
Lizamaison

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