Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Tina
 
Posts: n/a
Default Creating a function that makes a negative number a zero

I am trying to create a function that will subtract, but if the answer is
less than zero, will put a zero in the cell. I don't know how to do this.
Can you help me?
  #2   Report Post  
hodeware
 
Posts: n/a
Default

Try this


=IF(A1-A2<0,0,A1-A2)

with A1 & A2 being any cells

"Tina" wrote:

I am trying to create a function that will subtract, but if the answer is
less than zero, will put a zero in the cell. I don't know how to do this.
Can you help me?

  #3   Report Post  
 
Posts: n/a
Default

Hi
You could try wrapping your formula in a MAX function:
=MAX(yourfunction,0)

--
Andy.


"Tina" wrote in message
...
I am trying to create a function that will subtract, but if the answer is
less than zero, will put a zero in the cell. I don't know how to do this.
Can you help me?



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
Looking for function or formula to calculate number that is revers Ken Excel Worksheet Functions 2 February 7th 05 12:18 PM
How do I replace a negative number at the end of a formula with a. dealn2 Excel Discussion (Misc queries) 5 December 23rd 04 08:47 PM
Paste a function as a fixed number Martini25 Excel Discussion (Misc queries) 1 December 21st 04 12:39 PM
#VALUE in cell but pop up function box show right number Ted Dalton Excel Discussion (Misc queries) 1 December 14th 04 04:15 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 08:16 PM


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