#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default SumProduct

I am trying to sum a column based on 2 sets of criteria, the first criteria
stipulates that the data being summed is <= a date, the second criteria
defines a name, when met it sums hours. The formula I used is:

=sumproduct((H:H<=m7),(Q:Q=A11),K:K)

Where m7 is a date & A11 is a name

It keep returning #NUM! please help
--
CK
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 857
Default SumProduct

Hi,

In 2003 and earlier you can't reference the entire column for some
functions. change references like A:A to A1:A65000.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"ColleenK" wrote:

I am trying to sum a column based on 2 sets of criteria, the first criteria
stipulates that the data being summed is <= a date, the second criteria
defines a name, when met it sums hours. The formula I used is:

=sumproduct((H:H<=m7),(Q:Q=A11),K:K)

Where m7 is a date & A11 is a name

It keep returning #NUM! please help
--
CK

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default SumProduct

Hi,

I'd do your formula like this:-

=SUMPRODUCT((H1:H20<=M7)*(H1:H20<"")*(Q1:Q20=A11) *(K1:K20))

You can't use full columns unless in 2007 and include a check for empty
cells in column H because an empty cell will evaluate as TRUE for <=M7

Mike

"ColleenK" wrote:

I am trying to sum a column based on 2 sets of criteria, the first criteria
stipulates that the data being summed is <= a date, the second criteria
defines a name, when met it sums hours. The formula I used is:

=sumproduct((H:H<=m7),(Q:Q=A11),K:K)

Where m7 is a date & A11 is a name

It keep returning #NUM! please help
--
CK

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default SumProduct

Thanks for the entire column note, unfortunately I am still getting an error.
--
CK


"Shane Devenshire" wrote:

Hi,

In 2003 and earlier you can't reference the entire column for some
functions. change references like A:A to A1:A65000.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"ColleenK" wrote:

I am trying to sum a column based on 2 sets of criteria, the first criteria
stipulates that the data being summed is <= a date, the second criteria
defines a name, when met it sums hours. The formula I used is:

=sumproduct((H:H<=m7),(Q:Q=A11),K:K)

Where m7 is a date & A11 is a name

It keep returning #NUM! please help
--
CK

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default SumProduct

I tried the formula the way you have shown it, now I get a #Value! error. I
am referencing another tab in the same workbook, would this cause problems?
--
CK


"Mike H" wrote:

Hi,

I'd do your formula like this:-

=SUMPRODUCT((H1:H20<=M7)*(H1:H20<"")*(Q1:Q20=A11) *(K1:K20))

You can't use full columns unless in 2007 and include a check for empty
cells in column H because an empty cell will evaluate as TRUE for <=M7

Mike

"ColleenK" wrote:

I am trying to sum a column based on 2 sets of criteria, the first criteria
stipulates that the data being summed is <= a date, the second criteria
defines a name, when met it sums hours. The formula I used is:

=sumproduct((H:H<=m7),(Q:Q=A11),K:K)

Where m7 is a date & A11 is a name

It keep returning #NUM! please help
--
CK



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default SumProduct

This syntax will ignore text in K1:k10.

=sumproduct(--(H1:H10<=m7),--(Q1:Q10=A11),K1:K10)

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

ColleenK wrote:

I am trying to sum a column based on 2 sets of criteria, the first criteria
stipulates that the data being summed is <= a date, the second criteria
defines a name, when met it sums hours. The formula I used is:

=sumproduct((H:H<=m7),(Q:Q=A11),K:K)

Where m7 is a date & A11 is a name

It keep returning #NUM! please help
--
CK


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default SumProduct

Thanks Dave, the web site you supplied gave me the answer, thank you, thank
you, thank you
--
CK


"Dave Peterson" wrote:

This syntax will ignore text in K1:k10.

=sumproduct(--(H1:H10<=m7),--(Q1:Q10=A11),K1:K10)

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

ColleenK wrote:

I am trying to sum a column based on 2 sets of criteria, the first criteria
stipulates that the data being summed is <= a date, the second criteria
defines a name, when met it sums hours. The formula I used is:

=sumproduct((H:H<=m7),(Q:Q=A11),K:K)

Where m7 is a date & A11 is a name

It keep returning #NUM! please help
--
CK


--

Dave Peterson

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default SumProduct

Mike, your formula was correct, I miss-typed. Thank you so much for the help!
--
CK


"Mike H" wrote:

Hi,

I'd do your formula like this:-

=SUMPRODUCT((H1:H20<=M7)*(H1:H20<"")*(Q1:Q20=A11) *(K1:K20))

You can't use full columns unless in 2007 and include a check for empty
cells in column H because an empty cell will evaluate as TRUE for <=M7

Mike

"ColleenK" wrote:

I am trying to sum a column based on 2 sets of criteria, the first criteria
stipulates that the data being summed is <= a date, the second criteria
defines a name, when met it sums hours. The formula I used is:

=sumproduct((H:H<=m7),(Q:Q=A11),K:K)

Where m7 is a date & A11 is a name

It keep returning #NUM! please help
--
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
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
Sumproduct Help PLEASE cdw Excel Worksheet Functions 1 November 12th 07 02:22 PM
SUMPRODUCT Ken[_2_] Excel Worksheet Functions 0 November 10th 07 03:56 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
sumproduct Rob Excel Worksheet Functions 4 February 13th 06 03:29 AM


All times are GMT +1. The time now is 02:31 PM.

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

About Us

"It's about Microsoft Excel"