jmw
Industrial
- Jun 27, 2001
- 7,435
I'm using an IF function to position a number relative to other numbers which are arranged in an ascending order.
So I am saying IF a>b, b else IF a>c, b else c
Then I thought of a problem. My number might actually equal one of the numbers in my table so I wanted to create a rule for that eventuality.
This rule says something like IF:a=b,1 else 0
b is a calculation result.
Now to test this I set up data for the calculation such that I ought to get b=55 and, while some other results where coming out to 4 or 5 decimal places (general format for the cells) b came out as 55.
Unfortunately, when a= 55 and b=55 Excel insists b is greater than a and returns False.
I therefore formatted the cells as numbers with a set number of decimal places and b now returns 55.00000 and a 55.00
but I still get a false return with Excel insisting b>a
Any ideas?
JMW
So I am saying IF a>b, b else IF a>c, b else c
Then I thought of a problem. My number might actually equal one of the numbers in my table so I wanted to create a rule for that eventuality.
This rule says something like IF:a=b,1 else 0
b is a calculation result.
Now to test this I set up data for the calculation such that I ought to get b=55 and, while some other results where coming out to 4 or 5 decimal places (general format for the cells) b came out as 55.
Unfortunately, when a= 55 and b=55 Excel insists b is greater than a and returns False.
I therefore formatted the cells as numbers with a set number of decimal places and b now returns 55.00000 and a 55.00
but I still get a false return with Excel insisting b>a
Any ideas?
JMW