A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
PS.... Alexander wrote:
=if(F3<=100,”0”,if(F3<=200,”10”,if(F3<=300,”20”,if(F3<=400,”30”,”40”))))
and
=if(0<F2<=100,”0”,if(100<F2<=200,”10”,if(200<F2<=300,”20”,if(300<F2<=400,”30”,if(400<F2<=500,”40”)))))
The first formula is the best way to implement the intended logic, except for trying to quote the results, as I noted previously.
The second formula is incorrect syntax insofar as Excel will not interpret as you intended. For example 0<F2<=100 is interpreted as (0<F2)<=0, which is FALSE<=0 or TRUE<=0, depending on the value in F2. Either way, the result is FALSE because Excel considers all logic values (TRUE or FALSE) to be greater than any number.
The way to implement that logic in the second formula is syntax of the form AND(0<F2,F2<=100).
But that is overkill in this case because Excel evaluates the first formula left-to-right, stopping with the first true condition.