countif/sumproduct

dmheller

Board Regular
Joined
May 26, 2017
Messages
142
Office Version
  1. 365
So I am probably doing something simply wrong but i am having trouble finding it.
the data below does on for 30 days when 30 days are up. I am trying to count the hours of the day that a given column is greater than 900
I started here
=SUMPRODUCT(--(DAY(Sheet1!E6:E13200)=DAY(Sheet2!B5)),--(MONTH(Sheet1!E6:E13200)=MONTH(Sheet2!B5)),--(YEAR(Sheet1!E6:E13200)=YEAR(Sheet2!B5)),Sheet1!F6:F13200) this did exactly what it said, it summed the stuff for that day but thats not what i want
so then i modified it
=COUNTIFS(Sheet1!G6:G13200,">900",Sheet1!E6:E13200, "=" & DATE(YEAR(Sheet2!B5),MONTH(Sheet2!B5),DAY(Sheet2!B5)))

so sheet 1 is where the data set is. and datetime is in E5
sheet 2 i have a list of dates
1/8/20 this is in sheet 2 b5
1/9/20 this is in sheet 2 b6

Again, i am trying to count the number of times a column is greater than 900 in a given day. Any help would be great.
thanks


Here is what i have
DateTimeRTO_RIN.TR_18A06.MEASRTO_RIN.TR_18B06.MEASRTO_L2_RIN.TR_18A06.MEASRTO_L2_RIN.TR_18B06.MEAS
1/8/20 12:00:00 AM2097897313
1/8/20 1:00:00 AM1997997613
1/8/20 2:00:00 AM1997997713
1/8/20 3:00:00 AM1998197813
1/8/20 4:00:00 AM1998297812
1/8/20 5:00:00 AM1998297712
1/8/20 6:00:00 AM1998397712
1/8/20 7:00:00 AM1998597612
1/8/20 8:00:00 AM1998697412
1/8/20 9:00:00 AM1998797212
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Maybe:
SUMPRODUCT(--(DAY(Sheet1!E6:E13200)=DAY(Sheet2!B5)),--(MONTH(Sheet1!E6:E13200)=MONTH(Sheet2!B5)),--(YEAR(Sheet1!E6:E13200)=YEAR(Sheet2!B5)),--(Sheet1!F6:F13200>900) )
 
Upvote 0

Forum statistics

Threads
1,215,022
Messages
6,122,721
Members
449,093
Latest member
Mnur

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