countif problem

vgirl76

New Member
Joined
Oct 20, 2005
Messages
31
I have data where by the date range i want it to count up all the times between 2 min and 5 min

so i have the following formula: COUNT(IF(SACRN!$E:$E>=DATE(109,6,15),IF(SACRN!$I:$I,{">=0.00138888888",">=0.00347222222"})*{1,-1}))

But i only end up with value of 1.
Can someone please let me know what i am doing wrong?
I think it must be my date set up. When i had the formula just straight counting the time value it was working but I needed to added the date criteria.

thank you
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
IF(SACRN!$I:$I, --doesn't this always evaluate to TRUE?

">=0.00138888888",">=0.00347222222" --maybe one of them should be a less then?
 
Upvote 0
I'd use SUMPRODUCT

=SUMPRODUCT(--(SACRN!$E:$E>=DATE(109,6,15)),--(SACRN!$I:$I>=TIME(0,2,0)),--(SACRN!$I:$I<=TIME(0,5,0)))

Note: the whole column ranges will only work in Excel 2007. If you are using an earlier version the restrict the ranges.
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,537
Members
449,088
Latest member
RandomExceller01

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