Ranging foruma in excel

  • Thread starter Thread starter Mark Scott
  • Start date Start date
M

Mark Scott

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
 
Yes, but bear in mind that you don't need the AND(A1>B1, )
as we've already trapped the cases where A1<=B1 .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top