ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sumproduct Help! (https://www.excelbanter.com/excel-worksheet-functions/448565-sumproduct-help.html)

[email protected]

Sumproduct Help!
 
Hello I need help with a Sumproduct formula.

I have a column with dates another with times and the last one with number of calls
Example
A B c
1/2/2013 12:00 AM 3
1/2/2013 1:00 AM 4
1/2/2013 2:00 AM 1
1/2/2013 3:00 AM 6

I need a Sumproduct formula tha will add calls between 1:00 am and 3:00 am Only
Based on date and time look ups. I can not use the SUMIFS OR COUND IFS Because Im usint and external spreadsheet as my data source and it will not update unless you have the data spreadsheet open. So im stuck using a Sumproduct.

Claus Busch

Sumproduct Help!
 
Hi,

Am Mon, 8 Apr 2013 15:01:02 -0700 (PDT) schrieb :

A B c
1/2/2013 12:00 AM 3
1/2/2013 1:00 AM 4
1/2/2013 2:00 AM 1
1/2/2013 3:00 AM 6

I need a Sumproduct formula tha will add calls between 1:00 am and 3:00 am Only
Based on date and time look ups. I can not use the SUMIFS OR COUND IFS Because Im usint and external spreadsheet as my data source and it will not update unless you have the data spreadsheet open. So im stuck using a Sumproduct.


in D1 try:
=IF(A2=A1,"",SUMPRODUCT(--($A$1:$A$100=A1),--($B$1:$B$100=TIME(1,,)),--($B$1:$B$100<=TIME(3,,)),$C$1:$C$100))
and copy down. At the last value of the day you will get the result for
this day


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2

Kevin@Radstock

May be!
=SUMPRODUCT(--(A1:A4=A1),--(B1:B4=1/24),--(B1:B4<=3/24),C1:C4)

Or you can use cell reference to refer to a time & dates in cells.


Quote:

Originally Posted by (Post 1611064)
Hello I need help with a Sumproduct formula.

I have a column with dates another with times and the last one with number of calls
Example
A B c
1/2/2013 12:00 AM 3
1/2/2013 1:00 AM 4
1/2/2013 2:00 AM 1
1/2/2013 3:00 AM 6

I need a Sumproduct formula tha will add calls between 1:00 am and 3:00 am Only
Based on date and time look ups. I can not use the SUMIFS OR COUND IFS Because Im usint and external spreadsheet as my data source and it will not update unless you have the data spreadsheet open. So im stuck using a Sumproduct.


[email protected]

Sumproduct Help!
 
On Monday, April 8, 2013 5:01:02 PM UTC-5, wrote:
Hello I need help with a Sumproduct formula. I have a column with dates another with times and the last one with number of calls Example A B c 1/2/2013 12:00 AM 3 1/2/2013 1:00 AM 4 1/2/2013 2:00 AM 1 1/2/2013 3:00 AM 6 I need a Sumproduct formula tha will add calls between 1:00 am and 3:00 am Only Based on date and time look ups. I can not use the SUMIFS OR COUND IFS Because Im usint and external spreadsheet as my data source and it will not update unless you have the data spreadsheet open. So im stuck using a Sumproduct.




Thank you Claus


All times are GMT +1. The time now is 06:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com