Hello,
I am trying to add an extra condition into my formula but I can’t make it work.
So far, what I have is this:
=IF(C28=B11,1, IF(C28=B11-1,1, IF(C28=B11-2,1, IF(C28=B11-3,1, IF(C28=B11-4,1, IF(C28=B11-5,1,0))))))
Which is basically saying, if C28 is equal to or less than B11 by up to -5, return the number ‘1’. This is fine and works how I want.
What I am trying to do is add something extra in that means the value returned will be a zero rather than a 1 if the value in cell B11 is a zero.
I had done this:
=IF(AND(B11<>0)&C28=B11,1, IF(C28=B11-1,1, IF(C28=B11-2,1, IF(C28=B11-3,1, IF(C28=B11-4,1, IF(C28=B11-5,1,0))))))
Which did work to an extent but failed when a higher number than zero was in B11 and another number in a different cell but linked to B11 matched that higher number.
Does anyone have any idea how I might go about doing this?
Thanks very much
I am trying to add an extra condition into my formula but I can’t make it work.
So far, what I have is this:
=IF(C28=B11,1, IF(C28=B11-1,1, IF(C28=B11-2,1, IF(C28=B11-3,1, IF(C28=B11-4,1, IF(C28=B11-5,1,0))))))
Which is basically saying, if C28 is equal to or less than B11 by up to -5, return the number ‘1’. This is fine and works how I want.
What I am trying to do is add something extra in that means the value returned will be a zero rather than a 1 if the value in cell B11 is a zero.
I had done this:
=IF(AND(B11<>0)&C28=B11,1, IF(C28=B11-1,1, IF(C28=B11-2,1, IF(C28=B11-3,1, IF(C28=B11-4,1, IF(C28=B11-5,1,0))))))
Which did work to an extent but failed when a higher number than zero was in B11 and another number in a different cell but linked to B11 matched that higher number.
Does anyone have any idea how I might go about doing this?
Thanks very much