View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Fred Atkinson Fred Atkinson is offline
external usenet poster
 
Posts: 8
Default IF Function and a formula

Thanks, Ron,

That worked fine.

Regards,



Fred

On Sun, 26 Nov 2006 06:14:01 -0800, Ron Coderre
wrote:

Try something like this:

=MAX(your_formula,0)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Fred Atkinson" wrote:

I need to use the IF function to prevent a value from dropping
below zero. What I've tried with Excel doesn't seem to work for me.

I'll represent the formula by <FORMULA. What I am trying to
do is illustrated by:

IF <FORMULA gt 0 then cell=<FORMULA
IF <FORMULA eq 0 then cell=0
IF <FORMULA lt 0 then cell=0

All of this should take place within the same cell and yield a
value. If this is done right, the value displayed in the cell should
never be less than zero.

Regards,



Fred