SUMPRODUCT formula revision

Lil Stinker

Board Regular
Joined
Feb 16, 2022
Messages
151
Office Version
  1. 2019
Platform
  1. Windows
Hello,
I am using the following SUMPRODUCT formula to count the number of dates that fall within a 14 day period.
=SUMPRODUCT((H2:H10000>=TODAY())*(H2:H10000<=TODAY()+14))

How do I alter this to count only the dates based on certain criteria in column C? For instance, in the data set example below, how do I count only the return dates where "*CP200*" shows or just the return dates where "*Charger*" is listed?
Book1.xlsm
ABCDEFGH
1Item IDSerialNumberModelDescriptionStatusLocationDateOutReturnDate
2476878Motorola Radius CP200UHF 16 Channel WalkieOUTOC Carnival Event2/3/20232/13/2023
36450654Motorola Radius CP200UHF 16 Channel WalkieOUTOC Carnival Event2/3/20232/13/2023
4657894Motorola Radius CP200UHF 16 Channel WalkieINWarehouse
5668183Motorola ChargerUHF 16 Channel WalkieINWarehouse
6679504Motorola ChargerUHF 16 Channel WalkieINWarehouse
7689545Motorola ChargerUHF 16 Channel WalkieINWarehouse
86910500Motorola Power SupplyUHF 16 Channel WalkieINWarehouse
97011050Motorola Radius CP200UHF 16 Channel WalkieINWarehouse
107112005Motorola Radius CP200UHF 16 Channel WalkieINWarehouse
117218456Motorola ChargerUHF 16 Channel WalkieOUTOC Carnival Event2/3/20232/13/2023
127325452Motorola Power SupplyUHF 16 Channel WalkieOUTOC Carnival Event2/3/20232/13/2023
137425453Motorola Power SupplyUHF 16 Channel WalkieOUTOC Carnival Event2/3/20232/13/2023
147565006Motorola Power SupplyUHF 16 Channel WalkieOUTOC Carnival Event2/3/20232/13/2023
157680000Motorola Radius CP200UHF 16 Channel WalkieOUTOC Carnival Event2/3/20232/13/2023
16775500Motorola Radius CP200UHF 16 Channel WalkieINWarehouse
17786500Motorola ChargerUHF 16 Channel WalkieINWarehouse
187994658Motorola ChargerUHF 16 Channel WalkieOUTOC Carnival Event2/3/20232/13/2023
198085858Motorola Radius CP200UHF 16 Channel WalkieOUTOC Carnival Event2/3/20232/13/2023
Sheet2
 
in the formula in post #4, I removed the TODAY() function and hard coded a date in K1 so you can get results. Using TODAY with your data gets a zero as of today.
@awoohaw, thank you but as Joe suggested, I used the SUMPRODUCT method back in the day because I didn't know of the alternatives. This works too however, with my particular set up, the return dates are dynamic so I wouldn't be able to hard code the date to another cell. I could see how this method would work if you were perhaps searching by a specific date so I'll keep this in my pocket for later!
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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