Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default If result of formula is zero disgard it?

I have a spreadhseet for setting up a reserve?

In cell S5 I have the below formula

=SUM(P5+Q5)-R5

if R5 is greater than (P5+Q5) I obviously get a negative which in turn
screws up my next formula.

How do I get S5 to present a zero if formula result is a negative..?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default If result of formula is zero disgard it?

Try the below formula in S5:

=If(SUM(P5+Q5)-R5=0;SUM(P5+Q5)-R5;0)

Nathan

"Daniel0511" wrote:

I have a spreadhseet for setting up a reserve?

In cell S5 I have the below formula

=SUM(P5+Q5)-R5

if R5 is greater than (P5+Q5) I obviously get a negative which in turn
screws up my next formula.

How do I get S5 to present a zero if formula result is a negative..?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default If result of formula is zero disgard it?

Most users will probably need to replace those semicolons with commas

here's another one (not sure why SUM was needed)

=IF(P5+Q5-R5<0,0,P5+Q5-R5)

Regards,
Peter T


"Alogon" wrote in message
...
Try the below formula in S5:

=If(SUM(P5+Q5)-R5=0;SUM(P5+Q5)-R5;0)

Nathan

"Daniel0511" wrote:

I have a spreadhseet for setting up a reserve?

In cell S5 I have the below formula

=SUM(P5+Q5)-R5

if R5 is greater than (P5+Q5) I obviously get a negative which in turn
screws up my next formula.

How do I get S5 to present a zero if formula result is a negative..?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 690
Default If result of formula is zero disgard it?

=IF(P5+Q5-R5<0,0,P5+Q5-R5)

Another...

=MAX(P5+Q5-R5,0)

- - -
Dana DeLouis



Peter T wrote:
Most users will probably need to replace those semicolons with commas

here's another one (not sure why SUM was needed)

=IF(P5+Q5-R5<0,0,P5+Q5-R5)

Regards,
Peter T


"Alogon" wrote in message
...
Try the below formula in S5:

=If(SUM(P5+Q5)-R5=0;SUM(P5+Q5)-R5;0)

Nathan

"Daniel0511" wrote:

I have a spreadhseet for setting up a reserve?

In cell S5 I have the below formula

=SUM(P5+Q5)-R5

if R5 is greater than (P5+Q5) I obviously get a negative which in turn
screws up my next formula.

How do I get S5 to present a zero if formula result is a negative..?




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default If result of formula is zero disgard it?

Cool !

Regards,
Peter T


Another...

=MAX(P5+Q5-R5,0)

- - -
Dana DeLouis



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
Formula result and displayed result are different spindoctor Excel Worksheet Functions 4 July 15th 09 12:53 AM
Formula result does not match displayed result lothar Excel Worksheet Functions 1 June 23rd 08 05:05 AM
Formula Bar F9 Result differs from cell result??? Aaron Excel Worksheet Functions 3 May 15th 08 06:32 PM
Advanced formula - Return result & Show Cell Reference of result Irv Excel Worksheet Functions 7 May 6th 06 03:36 AM
Median result used in formula gives incorrect result vlatham Excel Worksheet Functions 4 September 21st 05 04:26 PM


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