ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Sumproduct and adding the total time in a column (https://www.excelbanter.com/excel-discussion-misc-queries/121608-sumproduct-adding-total-time-column.html)

[email protected]

Sumproduct and adding the total time in a column
 
Sometimes Sumproduct just gets me!

This is what I have: The 1st array works as does the 2nd array, as in
this case it returns 1, which is correct. But, when I then want to sum
all the time in column O that corresponds to the 2 correct arrays I get
a #Value.

So far I have tried 3-4 variations and cannot get it to work properly.

=SUMPRODUCT(('[Activity
Detail.htm]Detail'!$D$8:$D$65000=$C14)*('[Activity
Detail.htm]Detail'!$K$8:$K$65000=D$2)*('[Activity
Detail.htm]Detail'!$O$8:$O$65000))

Thanks,


Hans


Teethless mama

Sumproduct and adding the total time in a column
 
First try the smaller range to see it works. Example:
Detail.htm]Detail'!$D$8:$D$650


" wrote:

Sometimes Sumproduct just gets me!

This is what I have: The 1st array works as does the 2nd array, as in
this case it returns 1, which is correct. But, when I then want to sum
all the time in column O that corresponds to the 2 correct arrays I get
a #Value.

So far I have tried 3-4 variations and cannot get it to work properly.

=SUMPRODUCT(('[Activity
Detail.htm]Detail'!$D$8:$D$65000=$C14)*('[Activity
Detail.htm]Detail'!$K$8:$K$65000=D$2)*('[Activity
Detail.htm]Detail'!$O$8:$O$65000))

Thanks,


Hans



bj

Sumproduct and adding the total time in a column
 
check to see if there an #value somewhere in column O.
verify there are no merged cells

" wrote:

Sometimes Sumproduct just gets me!

This is what I have: The 1st array works as does the 2nd array, as in
this case it returns 1, which is correct. But, when I then want to sum
all the time in column O that corresponds to the 2 correct arrays I get
a #Value.

So far I have tried 3-4 variations and cannot get it to work properly.

=SUMPRODUCT(('[Activity
Detail.htm]Detail'!$D$8:$D$65000=$C14)*('[Activity
Detail.htm]Detail'!$K$8:$K$65000=D$2)*('[Activity
Detail.htm]Detail'!$O$8:$O$65000))

Thanks,


Hans




All times are GMT +1. The time now is 03:27 AM.

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