# Sumproduct Help

#### Prawn

##### New Member
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

Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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.

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!

try
=SUMPRODUCT(--(HOUR(B10:B290)=4),--(F10:F290="Start"))

Yeah Dave that formula worked also
good to know
Thanks guys!

Replies
3
Views
165
Replies
6
Views
184
Replies
2
Views
122
Replies
15
Views
384
Replies
3
Views
166

1,202,983
Messages
6,052,908
Members
444,611
Latest member
ggwpnore

### 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.

### Which adblocker are you using?

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

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