View Single Post
  #1   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

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