2 Data Set contains time

DoomBlasZt

New Member
Joined
May 5, 2017
Messages
10
I have 2 data sets :

1. Data order
ProductOrder TimeQty
AAA1:30 AM1
AAA2:00 AM1
AAA2:15 AM1
AAA2:15 AM1
AAA2:15 AM1
AAA2:15 AM1
AAA2:30 AM1
AAA2:30 AM1
AAA2:30 AM1
AAA2:45 AM1
AAA3:00 AM1
AAA3:00 AM1
AAA3:00 AM1
BBB3:15 AM1
BBB3:30 AM1
BBB3:45 AM1
BBB3:45 AM1
BBB4:00 AM1

<colgroup><col><col><col></colgroup><tbody>
</tbody>

2. Data schedule
ProductStartEndDuration
AAA2:002:4545
BBB3:004:0060

<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>


Is there any formula to find how many AAA product was ordered on time schedule? The answer should be 9

Thanks
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Yes. Let's say that your Data Order data (not counting the title row) is in range A2:C19.
And let's say that the Data Schedule data (not counting the title row) is in range E2:H3.

Then enter this formula in I2 to get your count:
Code:
=SUMPRODUCT(--(A$2:A$19=E2),--(B$2:B$19>=F2),--(B$2:B$19<=G2),--(C$2:C$19))
If you copy it down to I3, you will get the count for BBB in the 3:00 - 4:00 range.
 
Upvote 0
Thanks, it works

Never use sumproduct before and confuse for double negative (--) :confused:

But i will google and learn it.

Thanks again for your help.. GBU :biggrin:
 
Upvote 0
You are welcome.

Never use sumproduct before and confuse for double negative (--)
Each of those expressions returns TRUE/FALSE. -- simply coerces TRUE/FALSE to the values 1/0 so we can use them in multiplication.
 
Upvote 0

Forum statistics

Threads
1,214,527
Messages
6,120,058
Members
448,940
Latest member
mdusw

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