Sumproduct Help

Prawn

New Member
Joined
Oct 24, 2015
Messages
9
Column B is date/time = 07/02/2016 04:00:00

I am only interested in the time so i am using this formula =SUMPRODUCT(--(HOUR(B10:B290)=4)) to count the times that = 04:00.

What I need is a formula that will only count the times that =04:00 if the text in column F10:F290 = Start

I hope this makes sense..
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi Prawn,

The SUMPRODUCT is an awesome function!

Here's a solution that should work nicely for you.

=SUMPRODUCT((HOUR(B10:B290)=4)*(F10:F290="Start"))

Hope this helps.
 
Upvote 0
That worked a treat thanks so much !!

I tried something like that but was using the -- before hour and it kept coming up #value.

Thanks again for your help it is much appreciated!
 
Upvote 0
try
=SUMPRODUCT(--(HOUR(B10:B290)=4),--(F10:F290="Start"))
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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