Sumproduct help

tmmellor1981

Board Regular
Joined
Jan 18, 2009
Messages
122
Morning All

firstly i apologise if this is in another thread ive searched but cannot get any to work.

i'll try and make it as simple as i can i have 2 columns USER ID (A:A) and DATE (B:B) and 2 date cells(countaing a start and end date- call it C1 and C2 which can be changed by the user)what i would like is next to a table of user names a formula that counts how many times that user name appears in the list between the 2 dates selected

tried all sorts of sumif and countifs and sumproducts none of which being me back the correct answer im guessing something like
=SUMPRODUCT((A1:A1000="USER ID")*B1:B1000>=C1)*(B1:B1000<=C2"))
with a bit of tweaking

i have every faith as i always find mr excel always comes up with an answer

many thanks

Tim
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Try

=SUMPRODUCT(--(A1:A1000="USER ID"),--(B1:B1000>=C1),--(B1:B1000<=C2))
 
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,283
Members
449,075
Latest member
staticfluids

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