#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Monkandy
 
Posts: n/a
Default Conditional sum

I'm using the Conditional Sum Wizard to calculate sums based on text criteria.

It usually works fine except in only a few cells does it return 0 when I
know the sum is more than 0. I've rechecked formula and it appears no
different than the formulas that are working properly.

Any ideas why I'm getting 0 when it should actually be 400?

Here's the formula that I'm using. and I am pressing control+enter+shift to
make it an array formula.

=SUM(IF(Expenditures!$C$24:$C$192="Events",IF(Expe nditures!$D$24:$D$192="IA",Expenditures!$F$24:$F$1 92,0),0))
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB
 
Posts: n/a
Default Conditional sum

Are you sure there are no trailing spaces in column C or D?

You could try incorporating the TRIM function into your formula:
=SUM(IF(TRIM(Expenditures!$C$24:$C$192)="Events",I F(TRIM(Expenditures!$D$24:$D$192)="IA",Expenditure s!$F$24:$F$192,0),0))

Just as an FYI, you can also use SUMPRODUCT for multiple condition tests.
If you have several conditions, you can run into the 7 level nesting limit
w/the IF statements.
=SUMPRODUCT(--(TRIM(Expenditures!$C$24:$C$192)="Events"),
--(TRIM(Expenditures!$D$24:$D$192)="IA"),Expenditure s!$F$24:$F$192)




"Monkandy" wrote:

I'm using the Conditional Sum Wizard to calculate sums based on text criteria.

It usually works fine except in only a few cells does it return 0 when I
know the sum is more than 0. I've rechecked formula and it appears no
different than the formulas that are working properly.

Any ideas why I'm getting 0 when it should actually be 400?

Here's the formula that I'm using. and I am pressing control+enter+shift to
make it an array formula.

=SUM(IF(Expenditures!$C$24:$C$192="Events",IF(Expe nditures!$D$24:$D$192="IA",Expenditures!$F$24:$F$1 92,0),0))
Thanks

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
Keeping conditional formatting when sorting Andrea A Excel Discussion (Misc queries) 0 April 4th 06 03:00 PM
Conditional Format Not Working KMH Excel Discussion (Misc queries) 0 December 22nd 05 05:32 PM
Conditional formula - language needed gamebird Excel Worksheet Functions 7 October 10th 05 11:48 PM
VLOOKUP & Conditional Formating Help. Excel'ed Failures Excel Discussion (Misc queries) 6 August 16th 05 04:46 PM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM


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