View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mark Scott[_2_] Mark Scott[_2_] is offline
external usenet poster
 
Posts: 3
Default Ranging foruma in excel

Thanks David, making it harder than it should have been :)

"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
=IF(A1<=B1,0,IF(A1<C1,C1-B1,C1))
--
David Biddulph

"Mark Scott" wrote in message
...
I am looking for a function which does the following:

if value A is equal to or less than value B then return 0
if Value A greater than value B but less than value C then return the
difference C-B
if Value A greater than or equal to value C then return value C

I have tried using IF statements but they are not returning the values
correctly

Please can someone advise? using XL 2K7

Regards

Mark