MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Mar 30th, 2004, 05:29 PM   #1
grantb
 
Join Date: Dec 2003
Posts: 94
Default Conditional Sum

Is there a way you can drag this formula to cells below? Whenever I try doing this the cells below turn to 0.

Note: I change the information in the formula to reflect my new conditions.

Thanks.
grantb is offline   Reply With Quote
Old Mar 30th, 2004, 05:31 PM   #2
just_jon
MrExcel MVP
 
just_jon's Avatar
 
Join Date: Sep 2002
Location: Alabama/State of Disarray
Posts: 10,473
Default Re: Conditional Sum

To paraphrase Marty Feldman, Which formula?
__________________
just_jon
Book of the Month: I'm Not Really an MVP, I Just Play One on TV [j. jon, 2004]
just_jon is offline   Reply With Quote
Old Mar 30th, 2004, 05:35 PM   #3
grantb
 
Join Date: Dec 2003
Posts: 94
Default Re: Conditional Sum

This is what one of the formula's read:

=SUM(IF('Local Approval'!$A$3:$A$300=595,IF('Local Approval'!$C$3:$C$300=1,'Local Approval'!$E$3:$E$300,0),0))

Now, when I copy this formula to the cell below and change the formula to reflect: =SUM(IF('Local Approval'!$A$3:$A$300=596,IF('Local Approval'!$C$3:$C$300=2,'Local Approval'!$E$3:$E$300,0),0))
This cell reads 0, when it should read 84,800.

It seems like you can't copy the formula to cells below? I had to use the Conditional Sum Wizard for each cell.
grantb is offline   Reply With Quote
Old Mar 30th, 2004, 05:44 PM   #4
Brian from Maui
 
Brian from Maui's Avatar
 
Join Date: Feb 2002
Posts: 7,599
Default Re: Conditional Sum

Quote:
Originally Posted by grantb
This is what one of the formula's read:

=SUM(IF('Local Approval'!$A$3:$A$300=595,IF('Local Approval'!$C$3:$C$300=1,'Local Approval'!$E$3:$E$300,0),0))

Now, when I copy this formula to the cell below and change the formula to reflect: =SUM(IF('Local Approval'!$A$3:$A$300=596,IF('Local Approval'!$C$3:$C$300=2,'Local Approval'!$E$3:$E$300,0),0))
This cell reads 0, when it should read 84,800.

It seems like you can't copy the formula to cells below? I had to use the Conditional Sum Wizard for each cell.
The Sum formula is array entered. A non array formula,

=SUMPRODUCT(--('Local Approval'!$A$3:$A$300=595),--('Local Approval'!$C$3:$C$300=2),'Local Approval'!$E$3:$E$300)

if you need to drag your formula, reference cells instead of 595 and 2
Brian from Maui is offline   Reply With Quote
Old Mar 30th, 2004, 05:49 PM   #5
just_jon
MrExcel MVP
 
just_jon's Avatar
 
Join Date: Sep 2002
Location: Alabama/State of Disarray
Posts: 10,473
Default Re: Conditional Sum

Quote:
if you need to drag your formula, reference cells instead of 595 and 2
As in --

ROW(A595) and ROW(A2)
__________________
just_jon
Book of the Month: I'm Not Really an MVP, I Just Play One on TV [j. jon, 2004]
just_jon is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT +1. The time now is 08:48 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.