Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Kim Kim is offline
external usenet poster
 
Posts: 284
Default What is wrong with this formula

Hi. I'm new to this formula stuff so please answer so that I can understand.
I thought I'd copied the format correctly (from Microsaft SUMIF Help) but I
keep getting an error message that something is wrong. I can't see what
though... The Function button seems to show that everything is correct.
=SUMIF(D10+D11-D13,"0",(D10+D11-D13)*$A10)

It's to display a percentage (A10) of a sum if the sum is 0.
If it's <=0 then no sum is needed. Or, in fact, I'd rather display '0' in
the cell. How would I do that?
Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default What is wrong with this formula

SUMIF is used to evaluate a range of input cells and conditionally add
corresponding values. You just need a simple IF:
=if((D10+D11-D13)0,(D10+D11-D13)*$A10,0)

"Kim" wrote:

Hi. I'm new to this formula stuff so please answer so that I can understand.
I thought I'd copied the format correctly (from Microsaft SUMIF Help) but I
keep getting an error message that something is wrong. I can't see what
though... The Function button seems to show that everything is correct.
=SUMIF(D10+D11-D13,"0",(D10+D11-D13)*$A10)

It's to display a percentage (A10) of a sum if the sum is 0.
If it's <=0 then no sum is needed. Or, in fact, I'd rather display '0' in
the cell. How would I do that?
Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default What is wrong with this formula

Hi,

Here is a short formula that seems to do what you want:

=(D10+D11-D13)*$A10

If the value inside the ()'s is 0 then 0*A10 gives 0 otherwise the
calculation is done.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Kim" wrote:

Hi. I'm new to this formula stuff so please answer so that I can understand.
I thought I'd copied the format correctly (from Microsaft SUMIF Help) but I
keep getting an error message that something is wrong. I can't see what
though... The Function button seems to show that everything is correct.
=SUMIF(D10+D11-D13,"0",(D10+D11-D13)*$A10)

It's to display a percentage (A10) of a sum if the sum is 0.
If it's <=0 then no sum is needed. Or, in fact, I'd rather display '0' in
the cell. How would I do that?
Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default What is wrong with this formula

No, Shane. That would be wrong if (D10+D11-D13) is negative.

You could use =MAX((D10+D11-D13),0)*$A10
--
David Biddulph

Shane Devenshire wrote:
Hi,

Here is a short formula that seems to do what you want:

=(D10+D11-D13)*$A10

If the value inside the ()'s is 0 then 0*A10 gives 0 otherwise the
calculation is done.


Hi. I'm new to this formula stuff so please answer so that I can
understand. I thought I'd copied the format correctly (from
Microsaft SUMIF Help) but I keep getting an error message that
something is wrong. I can't see what though... The Function button
seems to show that everything is correct.
=SUMIF(D10+D11-D13,"0",(D10+D11-D13)*$A10)

It's to display a percentage (A10) of a sum if the sum is 0.
If it's <=0 then no sum is needed. Or, in fact, I'd rather display
'0' in the cell. How would I do that?
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
What's wrong with formula? Chip Excel Discussion (Misc queries) 7 June 7th 08 08:29 PM
Insert Calculated Field (wrong Qty*Price = wrong Amount) Edmund Excel Discussion (Misc queries) 8 October 4th 07 12:13 PM
What is wrong in formula. Rao Ratan Singh Excel Discussion (Misc queries) 14 January 8th 07 10:42 AM
What is wrong with formula? TMF in MN Excel Worksheet Functions 3 August 29th 06 04:38 PM
What is Wrong with this formula please? Issam LAdki New Users to Excel 4 March 9th 05 02:54 PM


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