#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default SUMPRODUCT ERROR

Hi There,

I am getting a value error when using the following formula:

=SUMPRODUCT(--('Detail Hours'!$F$1:$F$1000=D$3),--('Detail
Hours'!$F$1:$F$1000<""),--('Detail Hours'!P7=A5),('Detail
Hours'!$P$1:$P$1000))

Where the first criteria matches a name and the next criteria matches a date.

Please help.

Thanks
--
CK
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default SUMPRODUCT ERROR

This is causing the error:

--('Detail Hours'!P7=A5)

Should that maybe be:

--('Detail Hours'!P1:P1000=A5)

--
Biff
Microsoft Excel MVP


"ColleenK" wrote in message
...
Hi There,

I am getting a value error when using the following formula:

=SUMPRODUCT(--('Detail Hours'!$F$1:$F$1000=D$3),--('Detail
Hours'!$F$1:$F$1000<""),--('Detail Hours'!P7=A5),('Detail
Hours'!$P$1:$P$1000))

Where the first criteria matches a name and the next criteria matches a
date.

Please help.

Thanks
--
CK



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default SUMPRODUCT ERROR

Presuamably some of the values in column P are text, rather than numbers?
--
David Biddulph

"ColleenK" wrote in message
...
Hi There,

I am getting a value error when using the following formula:

=SUMPRODUCT(--('Detail Hours'!$F$1:$F$1000=D$3),--('Detail
Hours'!$F$1:$F$1000<""),--('Detail Hours'!P7=A5),('Detail
Hours'!$P$1:$P$1000))

Where the first criteria matches a name and the next criteria matches a
date.

Please help.

Thanks
--
CK



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default SUMPRODUCT ERROR

Hi,
your problem is that the ranges has to be the same within the formula try this

=IF('Detail Hours'!P7=A5,SUMPRODUCT(--('Detail
Hours'!$F$1:$F$1000=D$3),--('Detail Hours'!$F$1:$F$1000<""),('Detail
Hours'!$P$1:$P$1000)))

"ColleenK" wrote:

Hi There,

I am getting a value error when using the following formula:

=SUMPRODUCT(--('Detail Hours'!$F$1:$F$1000=D$3),--('Detail
Hours'!$F$1:$F$1000<""),--('Detail Hours'!P7=A5),('Detail
Hours'!$P$1:$P$1000))

Where the first criteria matches a name and the next criteria matches a date.

Please help.

Thanks
--
CK

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,069
Default SUMPRODUCT ERROR

You are getting an error because each argument in a SUMPRODUCT formula has to
be an array (range) containing the same number of cells. Your other arguments
each has a range of 1000 cells, but --('Detail Hours'!P7=A5) refers to a
single cell. You have to pull that out of the SUMPRODUCT function and
incorporate it separately:

=SUMPRODUCT(--('Detail Hours'!$F$1:$F$1000=D$3),--('Detail
Hours'!$F$1:$F$1000<""),('Detail Hours'!$P$1:$P$1000)) *('Detail
Hours'!P7=A5)

However, some of this doesn't make sense (to me, at least). You are testing
that F1:F1000 is equal to D3. Then you are testing that F1:F1000 is not
empty. Because of the first test, the second test is really just testing that
D3 is not empty.

It looks like your formula is counting the number of records for the person
whose name is in D3, but only if the date in P7 matches the date in A5.
Unless all the records for the D3 person happen to have the same date as P7,
you are not counting the records for that person with that date. What are you
trying to accomplish with this formula? I am afraid it may not be doing what
you intended.

Hope this helps,

Hutch

"ColleenK" wrote:

Hi There,

I am getting a value error when using the following formula:

=SUMPRODUCT(--('Detail Hours'!$F$1:$F$1000=D$3),--('Detail
Hours'!$F$1:$F$1000<""),--('Detail Hours'!P7=A5),('Detail
Hours'!$P$1:$P$1000))

Where the first criteria matches a name and the next criteria matches a date.

Please help.

Thanks
--
CK



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default SUMPRODUCT ERROR

Thanks for the suggestion, unfortunately changing the range does not work, as
the date is only in one cell, the formula returns zero.
--
CK


"T. Valko" wrote:

This is causing the error:

--('Detail Hours'!P7=A5)

Should that maybe be:

--('Detail Hours'!P1:P1000=A5)

--
Biff
Microsoft Excel MVP


"ColleenK" wrote in message
...
Hi There,

I am getting a value error when using the following formula:

=SUMPRODUCT(--('Detail Hours'!$F$1:$F$1000=D$3),--('Detail
Hours'!$F$1:$F$1000<""),--('Detail Hours'!P7=A5),('Detail
Hours'!$P$1:$P$1000))

Where the first criteria matches a name and the next criteria matches a
date.

Please help.

Thanks
--
CK



.

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default SUMPRODUCT ERROR

Thanks for the suggestion, I had tried this but it does not give me what I
need, as there are lots of columns.
--
CK


"Eduardo" wrote:

Hi,
your problem is that the ranges has to be the same within the formula try this

=IF('Detail Hours'!P7=A5,SUMPRODUCT(--('Detail
Hours'!$F$1:$F$1000=D$3),--('Detail Hours'!$F$1:$F$1000<""),('Detail
Hours'!$P$1:$P$1000)))

"ColleenK" wrote:

Hi There,

I am getting a value error when using the following formula:

=SUMPRODUCT(--('Detail Hours'!$F$1:$F$1000=D$3),--('Detail
Hours'!$F$1:$F$1000<""),--('Detail Hours'!P7=A5),('Detail
Hours'!$P$1:$P$1000))

Where the first criteria matches a name and the next criteria matches a date.

Please help.

Thanks
--
CK

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default SUMPRODUCT ERROR

column F has a list of names and columns P thru BT are hours associated with
the name, each column in P thru BT has a date as a heading. I am trying to
summarize the data into another worksheet. Hope this helps
--
CK


"Tom Hutchins" wrote:

You are getting an error because each argument in a SUMPRODUCT formula has to
be an array (range) containing the same number of cells. Your other arguments
each has a range of 1000 cells, but --('Detail Hours'!P7=A5) refers to a
single cell. You have to pull that out of the SUMPRODUCT function and
incorporate it separately:

=SUMPRODUCT(--('Detail Hours'!$F$1:$F$1000=D$3),--('Detail
Hours'!$F$1:$F$1000<""),('Detail Hours'!$P$1:$P$1000)) *('Detail
Hours'!P7=A5)

However, some of this doesn't make sense (to me, at least). You are testing
that F1:F1000 is equal to D3. Then you are testing that F1:F1000 is not
empty. Because of the first test, the second test is really just testing that
D3 is not empty.

It looks like your formula is counting the number of records for the person
whose name is in D3, but only if the date in P7 matches the date in A5.
Unless all the records for the D3 person happen to have the same date as P7,
you are not counting the records for that person with that date. What are you
trying to accomplish with this formula? I am afraid it may not be doing what
you intended.

Hope this helps,

Hutch

"ColleenK" wrote:

Hi There,

I am getting a value error when using the following formula:

=SUMPRODUCT(--('Detail Hours'!$F$1:$F$1000=D$3),--('Detail
Hours'!$F$1:$F$1000<""),--('Detail Hours'!P7=A5),('Detail
Hours'!$P$1:$P$1000))

Where the first criteria matches a name and the next criteria matches a date.

Please help.

Thanks
--
CK

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,069
Default SUMPRODUCT ERROR

Does this version do what you want?

=IF(AND(LEN($D$3)0,'Detail Hours'!P7=$A5),SUMPRODUCT(--('Detail
Hours'!$F$1:$F$1000=D$3),('Detail Hours'!P$1:P$1000)),0)

I'm not sure which references need to be absolute vs. relative for your
purposes. Are you going to enter this in a column on another sheet, then copy
it across 56 more columns?

Hope this helps,

Hutch

"ColleenK" wrote:

column F has a list of names and columns P thru BT are hours associated with
the name, each column in P thru BT has a date as a heading. I am trying to
summarize the data into another worksheet. Hope this helps
--
CK


"Tom Hutchins" wrote:

You are getting an error because each argument in a SUMPRODUCT formula has to
be an array (range) containing the same number of cells. Your other arguments
each has a range of 1000 cells, but --('Detail Hours'!P7=A5) refers to a
single cell. You have to pull that out of the SUMPRODUCT function and
incorporate it separately:

=SUMPRODUCT(--('Detail Hours'!$F$1:$F$1000=D$3),--('Detail
Hours'!$F$1:$F$1000<""),('Detail Hours'!$P$1:$P$1000)) *('Detail
Hours'!P7=A5)

However, some of this doesn't make sense (to me, at least). You are testing
that F1:F1000 is equal to D3. Then you are testing that F1:F1000 is not
empty. Because of the first test, the second test is really just testing that
D3 is not empty.

It looks like your formula is counting the number of records for the person
whose name is in D3, but only if the date in P7 matches the date in A5.
Unless all the records for the D3 person happen to have the same date as P7,
you are not counting the records for that person with that date. What are you
trying to accomplish with this formula? I am afraid it may not be doing what
you intended.

Hope this helps,

Hutch

"ColleenK" wrote:

Hi There,

I am getting a value error when using the following formula:

=SUMPRODUCT(--('Detail Hours'!$F$1:$F$1000=D$3),--('Detail
Hours'!$F$1:$F$1000<""),--('Detail Hours'!P7=A5),('Detail
Hours'!$P$1:$P$1000))

Where the first criteria matches a name and the next criteria matches a date.

Please help.

Thanks
--
CK

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sumproduct error John Gregory Excel Discussion (Misc queries) 5 September 11th 09 04:38 AM
SUMPRODUCT Error Curtis Excel Worksheet Functions 2 August 28th 09 02:37 PM
sumproduct value error quinn111 Excel Discussion (Misc queries) 4 January 23rd 09 03:05 AM
#ref error with Sumproduct [email protected] Excel Worksheet Functions 5 October 9th 06 07:00 PM
SUMPRODUCT ERROR Mestrella31 Excel Discussion (Misc queries) 1 January 26th 05 08:01 PM


All times are GMT +1. The time now is 04:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"