Count no of dates

Ranjjeetk

Board Regular
Joined
Mar 24, 2006
Messages
79
I have data
Demo4.xls
ABCDEFGH
1TicketNumber+ImpactCreatedByAssigned-toAssignTimeWIPTimeClosedTimeStatus
22917288Mediumci655KhopdeRanjjeet6/1/200621:21PendingInfo
32894043Mediumcs730KhopdeRanjjeet5/19/200619:035/25/200620:08Closed
42698598Mediumfz536KhopdeRanjjeet2/20/200614:314/18/200615:24Closed
52686476Mediumcd856KhopdeRanjjeet2/20/20063:592/20/20068:25Closed
62593645Mediumay329KhopdeRanjjeet2/20/200614:0712/8/200523:233/15/200616:29Closed
72623070Mediumcv056KhopdeRanjjeet3/7/200617:5012/27/200519:385/3/200615:57Closed
82622551Mediumcv056KhopdeRanjjeet3/7/200617:5012/27/200519:395/3/20066:29Closed
Discoverer Data




And data I required should populate in
Demo4.xls
ABCDE
4FromDateToDateTicketsAssignedClosedWIP
508-Oct-0514-Oct-05
615-Oct-0521-Oct-05
722-Oct-0528-Oct-05
Stats


In second excel from date and to date contains the dates and under Ticket Assigned I should get count from excel 1 (Col Assign_time) count of ticket between those two dates. Kindly suggest.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Try:

=SUMPRODUCT(--('Discoverer Data'!$E$2:$E$8>=A5),--('Discoverer Data'!$E$2:$E$8<=B5))

Copied down.

Adjust ranges to suit.
 
Upvote 0
I'm not sure what you mean by "between" since each ticket has 3 dates... but you can switch which columns in Discover Data this formula references to account for your needs:

=SUMPRODUCT(--(A1<'Discover Data'!E$1:E$50),--(B1>'Discover Data'!G$1:G$50))

Hope this helps,
~Goldfish
 
Upvote 0
It works for given range ie A2:A50 but if I want to give the range as comlete column ie A:A then how can I go about it . This I have to do bcoz on daily basis I need to add the data
 
Upvote 0
Full column references cannot be used in Sumproduct() formulas and I think all Array formulas, so you have to define the range.

If you have Excel 2003, you can use the List feature found in the Data menu to make a dynamic range.
 
Upvote 0
Try Countif()

e.g. =Countif('Discoverer Data'!$E:$E,">="&A5)-Countif('Discoverer Data'!$E:$E,">"&B5)
 
Upvote 0
Thanks,

The formula =SUMPRODUCT(('Discoverer Data'!$E$2:$E$8>=A5)*('Discoverer Data'!$E$2:$E$8<=B5)) is working for me.

But if you see the excel image 1 and in that if I also want to add in above formula created by = ci655 or cs730 how should I go for it.
 
Upvote 0
Try:

=SUMPRODUCT(('Discoverer Data'!$E$2:$E$8>=A5)*('Discoverer Data'!$E$2:$E$8<=B5)*('Discoverer Data'!$C$2:$C$8="ci655")+('Discoverer Data'!$C$2:$C$8="cs730"))
 
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,977
Members
449,200
Latest member
Jamil ahmed

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