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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

LiveToExcel

Board Regular
Joined
Feb 11, 2016
Messages
56
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.
 

Prawn

New Member
Joined
Oct 24, 2015
Messages
9
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!
 

Dave Patton

Well-known Member
Joined
Feb 15, 2002
Messages
4,655
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
try
=SUMPRODUCT(--(HOUR(B10:B290)=4),--(F10:F290="Start"))
 

Watch MrExcel Video

Forum statistics

Threads
1,129,553
Messages
5,636,976
Members
416,953
Latest member
broexc

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
Top