Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
india0693
 
Posts: n/a
Default make negative number value to zero


when I enter that function in cell A3....it gave me the wrong answer.
In cell A3, it gave me (3) as the answer.....I used this formula:

If your numbers are in A1=3 to A2=8,
=IF(A1<0,0,A1)

-I am looking for a way to calculate only zero instead of going below
0.-

example:

3
8
-5 (instead of -5, I am looking for a way to make it calculate to the
number zero)

However, if switch around the correct answer will be positive 5...

???But how do I make the answer show the number zero if it becomes
(-5)????


--
india0693
------------------------------------------------------------------------
india0693's Profile: http://www.excelforum.com/member.php...o&userid=25663
View this thread: http://www.excelforum.com/showthread...hreadid=390811

  #2   Report Post  
Adrian M
 
Posts: n/a
Default

Besides using an IF statement you can also use a MAX statement so for example
you would say =MAX(-5,0) and Excel would show the maximum of the 2 numbers
which in this case would be 0. If it was =MAX(5,0) then it would show a 5.
You can replace the numbers with cell references as well. Look on
http://www.auditexcel.co.za/statistics.html to see how to use the MIN and MAX
features.

"india0693" wrote:


when I enter that function in cell A3....it gave me the wrong answer.
In cell A3, it gave me (3) as the answer.....I used this formula:

If your numbers are in A1=3 to A2=8,
=IF(A1<0,0,A1)

-I am looking for a way to calculate only zero instead of going below
0.-

example:

3
8
-5 (instead of -5, I am looking for a way to make it calculate to the
number zero)

However, if switch around the correct answer will be positive 5...

???But how do I make the answer show the number zero if it becomes
(-5)????


--
india0693
------------------------------------------------------------------------
india0693's Profile: http://www.excelforum.com/member.php...o&userid=25663
View this thread: http://www.excelforum.com/showthread...hreadid=390811


  #3   Report Post  
Roger Govier
 
Posts: n/a
Default

As Max said, but inserting your example
=MAX(0,SUM(A1:A2))

--
Regards
Roger Govier
"india0693" wrote
in message ...

when I enter that function in cell A3....it gave me the wrong answer.
In cell A3, it gave me (3) as the answer.....I used this formula:

If your numbers are in A1=3 to A2=8,
=IF(A1<0,0,A1)

-I am looking for a way to calculate only zero instead of going below
0.-

example:

3
8
-5 (instead of -5, I am looking for a way to make it calculate to the
number zero)

However, if switch around the correct answer will be positive 5...

???But how do I make the answer show the number zero if it becomes
(-5)????


--
india0693
------------------------------------------------------------------------
india0693's Profile:
http://www.excelforum.com/member.php...o&userid=25663
View this thread: http://www.excelforum.com/showthread...hreadid=390811



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 can I make a cell a certain color dependent on number value? Sue Excel Discussion (Misc queries) 1 June 2nd 05 06:41 PM
How can I make a number e.g. "14" appear as a word e.g. "fourteen. Gil Excel Worksheet Functions 4 May 25th 05 10:21 PM
Defining a number in a cell by text then subtracting it by the tex Crowraine Excel Worksheet Functions 1 December 16th 04 07:49 AM
Formatting a cell as "text" in the number catagory. Ed Excel Worksheet Functions 3 December 7th 04 07:12 PM
How can I make autofilter show the filtered number of rows bsell123 Excel Worksheet Functions 1 October 28th 04 06:12 PM


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