Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default sumif or sumproduct?

I have a workbook with two active sheets. The second contains data and I
want to use the first for summary information. The data is basically dates
(in column A) and numbers in the other columns. Based on some of the other
questions and answers here, I wrote the formula:

=SUMPRODUCT(((MONTH('Issue Detail'!$A3:$A275)=7)))*('Issue Detail'!$B3:$B275).

Issue detail is the name of the second sheet; 7 is July; A3:A275 is the
column of dates (formatted as 07/03/06, etc.); and B3:B275 is one of the
columns of numbers.

Although the formula seemingly has no errors, The only result I am getting
is 0.

I have been reading this forum for suggestions & guidance and, in advance, I
want to say thanks for the past help.



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default sumif or sumproduct?


Użytkownik "ronnomad" napisał w
wiadomo¶ci ...
I have a workbook with two active sheets. The second contains data and I
want to use the first for summary information. The data is basically

dates
(in column A) and numbers in the other columns. Based on some of the

other
questions and answers here, I wrote the formula:

=SUMPRODUCT(((MONTH('Issue Detail'!$A3:$A275)=7)))*('Issue

Detail'!$B3:$B275).

Issue detail is the name of the second sheet; 7 is July; A3:A275 is the
column of dates (formatted as 07/03/06, etc.); and B3:B275 is one of the
columns of numbers.

Although the formula seemingly has no errors, The only result I am getting
is 0.

I have been reading this forum for suggestions & guidance and, in advance,

I
want to say thanks for the past help.




u can use sumif function or array formula
=sum(('Issue Detail'!$A3:$A275)=7)*('Issue Detail'!$B3:$B275))
remember to accept array formula with ctrl+shift+enter
mcg


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 258
Default sumif or sumproduct?

Ronnomad --

Not sure I can parse things right, but the first thing I observe is that a
SUMPRODUCT formula has two arrays separated by a comma, and I don't see that
in your formula. I suspect it's completing the SUMPRODUCT by multiplying by
a nonexistent second array and getting zero, then multiplying against the
second range.

Try redoing the formula to put your column 'B' inside the SUMPRODUCT.

HTH

"ronnomad" wrote:

I have a workbook with two active sheets. The second contains data and I
want to use the first for summary information. The data is basically dates
(in column A) and numbers in the other columns. Based on some of the other
questions and answers here, I wrote the formula:

=SUMPRODUCT(((MONTH('Issue Detail'!$A3:$A275)=7)))*('Issue Detail'!$B3:$B275).

Issue detail is the name of the second sheet; 7 is July; A3:A275 is the
column of dates (formatted as 07/03/06, etc.); and B3:B275 is one of the
columns of numbers.

Although the formula seemingly has no errors, The only result I am getting
is 0.

I have been reading this forum for suggestions & guidance and, in advance, I
want to say thanks for the past help.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 380
Default sumif or sumproduct?

Things have moved on, See
http://www.xldynamic.com/source/xld.SUMPRODUCT.html for a detailed
explanation.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"pdberger" wrote in message
...
Ronnomad --

Not sure I can parse things right, but the first thing I observe is that a
SUMPRODUCT formula has two arrays separated by a comma, and I don't see

that
in your formula. I suspect it's completing the SUMPRODUCT by multiplying

by
a nonexistent second array and getting zero, then multiplying against the
second range.

Try redoing the formula to put your column 'B' inside the SUMPRODUCT.

HTH

"ronnomad" wrote:

I have a workbook with two active sheets. The second contains data and

I
want to use the first for summary information. The data is basically

dates
(in column A) and numbers in the other columns. Based on some of the

other
questions and answers here, I wrote the formula:

=SUMPRODUCT(((MONTH('Issue Detail'!$A3:$A275)=7)))*('Issue

Detail'!$B3:$B275).

Issue detail is the name of the second sheet; 7 is July; A3:A275 is the
column of dates (formatted as 07/03/06, etc.); and B3:B275 is one of the
columns of numbers.

Although the formula seemingly has no errors, The only result I am

getting
is 0.

I have been reading this forum for suggestions & guidance and, in

advance, I
want to say thanks for the past help.







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 380
Default sumif or sumproduct?

It's all down to the brackets. Your formula is being evaluated first as

SUMPRODUCT(((MONTH('Issue Detail'!$A3:$A275)=7)))

which resolves to 0 because you have nothing to coerce the TRUE/FALSE values
to 1/0. Even if you did, trying to multiply that SP result by the value
array would give you #VALUE!. You can get past this by array-entering, but
it would still give the wrong answer.

SP should be a format like

=SUMPRODUCT((condition1)[*(condition2)[*(condition3]]*(values))

which in your case would be

=SUMPRODUCT((MONTH('Issue Detail'!$A3:$A275)=7)*('Issue Detail'!$B3:$B275))

or

=SUMPRODUCT((MONTH('Issue Detail'!$A3:$A275)=7)*'Issue Detail'!$B3:$B275)

as Don suggested.


--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"ronnomad" wrote in message
...
I have a workbook with two active sheets. The second contains data and I
want to use the first for summary information. The data is basically

dates
(in column A) and numbers in the other columns. Based on some of the

other
questions and answers here, I wrote the formula:

=SUMPRODUCT(((MONTH('Issue Detail'!$A3:$A275)=7)))*('Issue

Detail'!$B3:$B275).

Issue detail is the name of the second sheet; 7 is July; A3:A275 is the
column of dates (formatted as 07/03/06, etc.); and B3:B275 is one of the
columns of numbers.

Although the formula seemingly has no errors, The only result I am getting
is 0.

I have been reading this forum for suggestions & guidance and, in advance,

I
want to say thanks for the past help.





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 or SUMIF Serge Excel Discussion (Misc queries) 17 April 10th 06 11:50 PM
SUMIF Function Inside SUMPRODUCT Function Abdul Waheed Excel Worksheet Functions 17 September 19th 05 04:24 PM
SUMPRODUCT or SUMIF nfbelo Excel Worksheet Functions 2 May 24th 05 07:18 PM
SUMPRODUCT or SUMIF or ... nfbelo Excel Worksheet Functions 4 May 24th 05 06:34 PM
Sumif not Sumproduct David Excel Worksheet Functions 4 December 8th 04 11:39 AM


All times are GMT +1. The time now is 08:49 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"