Converting Sumproduct Formulas into Time

lukerees83

Board Regular
Joined
Mar 28, 2011
Messages
59
I have a formula that I am currently using to make caculation on cells that are in the "general" format in Excel 2003.

It is working on 2 columns of data and is designed to return a value if the figure in column is >0 and <=30 AND if the value in column P is greater than zero.

=SUMPRODUCT(--($O$2:$O$1300>0),--($O$2:$O$1300<=30),--($P$2:$P$1300>0))

I now have to apply the formula in exactly the same way but this time to cells that are in the hh:mm time format and have no idea how. I didn't write the original formula so am a bit sketchy on how it works.

But in a nutshell I now need the formula to count when the value in column S is greater than 00:00 and less than or equal to 00:30 AND the value in T is greater than 00:00

Hope this makes sense. Any ideas?
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Try

=SUMPRODUCT(--(S2:S300>"00:00"+0),--(S2:S300<="00:30"+0),--(T2:T300>"00:00"+0))
 
Upvote 0
I have a formula that I am currently using to make caculation on cells that are in the "general" format in Excel 2003.

It is working on 2 columns of data and is designed to return a value if the figure in column is >0 and <=30 AND if the value in column P is greater than zero.

=SUMPRODUCT(--($O$2:$O$1300>0),--($O$2:$O$1300<=30),--($P$2:$P$1300>0))

I now have to apply the formula in exactly the same way but this time to cells that are in the hh:mm time format and have no idea how. I didn't write the original formula so am a bit sketchy on how it works.

But in a nutshell I now need the formula to count when the value in column S is greater than 00:00 and less than or equal to 00:30 AND the value in T is greater than 00:00

Hope this makes sense. Any ideas?


Use cells to hold the criteria:
  • A2 = 0:00
  • B2 = 0:30
Then:

=SUMPRODUCT(--($S$2:$S$1300>A2),--($S$2:$S$1300<=B2),--($T$2:$T$1300>A2))
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,845
Members
452,948
Latest member
UsmanAli786

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