Formula help

AfisherLM

New Member
Joined
Feb 15, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi Mr Excel Team
In Below Table for "Item 1", Group "MS", and Task D, I need a formula that counts the number of dates that are within the week of Feb 14th 2022 (Feb 14 to Feb 20th both values included)
The result that I need to obtain is in Cell E12. In this case the result is 4 and it corresponds to the values higlighted in yellow
Note: Please note that some cells contain formulas and others not

Book2
ABCDEFGHI
2MSMSSCMSPDPDMSMS
3DRADRADR
4Item115-Feb-202214-Feb-202218-Feb-202213-Feb-20227-Feb-20221-Feb-20229-Feb-202215-Feb-2022
5Item217-Feb-202216-Feb-202220-Feb-202215-Feb-20229-Feb-20223-Feb-202211-Feb-202217-Feb-2022
6Item121-Feb-202220-Feb-202224-Feb-202219-Feb-202213-Feb-20227-Feb-202215-Feb-202221-Feb-2022
7Item326-Feb-202225-Feb-20221-Mar-202224-Feb-202218-Feb-202212-Feb-202220-Feb-202226-Feb-2022
8Item14-Mar-20223-Mar-20227-Mar-20222-Mar-202224-Feb-202218-Feb-202217-Feb-20224-Mar-2022
9
10
11ItemGroupTaskWeek ofCount
12Item1MSD14-Feb-20224
Sheet1
Cell Formulas
RangeFormula
I5:I8,B8:G8,B5:H7B5=P5+B4
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
I think I found it
=SUMPRODUCT((B4:I8>=D12)*(B4:I8<D12+7)*(B3:I3=C12)*(B2:I2=B12)*(A4:A8=A12))
 
Upvote 0

Forum statistics

Threads
1,215,517
Messages
6,125,287
Members
449,218
Latest member
Excel Master

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