Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 226
Default if/then formula help

I would like a if/then formula to look at a cell and if that cell is equal or
less than zero to simply product a zero, not a negative. Or any other
formula that would do this... Just thought it would be an if/then..

thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default if/then formula help

What do want to do if the cell is greater than 0?

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

Or, to make it more robust:

=IF(ISNUMBER(A1),IF(A1<=0,0,A1),0)

Biff

"Roger" wrote in message
...
I would like a if/then formula to look at a cell and if that cell is equal
or
less than zero to simply product a zero, not a negative. Or any other
formula that would do this... Just thought it would be an if/then..

thanks in advance.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,081
Default if/then formula help

try

=MIN(A1,0)


"Roger" wrote:

I would like a if/then formula to look at a cell and if that cell is equal or
less than zero to simply product a zero, not a negative. Or any other
formula that would do this... Just thought it would be an if/then..

thanks in advance.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default if/then formula help

Pretty sure you have a typo the

try
=MIN(A1,0)


=MAX(A1,0)

Biff

"Duke Carey" wrote in message
...
try

=MIN(A1,0)


"Roger" wrote:

I would like a if/then formula to look at a cell and if that cell is
equal or
less than zero to simply product a zero, not a negative. Or any other
formula that would do this... Just thought it would be an if/then..

thanks in advance.



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



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