Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Display "0" for negative numbers

How do I write a function that displays "0" when a negative number is the
result of a sum?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Display "0" for negative numbers

=MAX(0,SUM(A1:A3))
--
David Biddulph

"Bryce" wrote in message
...
How do I write a function that displays "0" when a negative number is the
result of a sum?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Display "0" for negative numbers

One way:

=MAX(0,SUM(A1:A4))

Or, if you just want to display 0, not change the value to 0

Format/Cells/Number/Custom General;\0;General;@


In article ,
Bryce wrote:

How do I write a function that displays "0" when a negative number is the
result of a sum?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 207
Default Display "0" for negative numbers

IF(SUM(A1:A10)<0,0,SUM(A1:A10))



"Bryce" wrote in message
...
How do I write a function that displays "0" when a negative number is the
result of a sum?



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
How do I change the column heading in Excel to display "A" "B" "C Thai New Users to Excel 1 November 30th 07 08:06 PM
My Column display as "numbers" instead of "alphabets" ali Excel Discussion (Misc queries) 1 October 24th 07 05:16 AM
How to display numbers as text? Ex: 203 = "two hundred, three" Dann the Mann Excel Worksheet Functions 1 June 8th 07 03:47 PM
"find and replace" negative numbers pk Excel Worksheet Functions 5 March 16th 06 09:39 PM
Vlookup and "-" negative numbers are giving me a #N/A DMB Excel Discussion (Misc queries) 12 January 16th 06 03:11 PM


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

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"