multiple if functions
IF() allows nesting up to 7 deep. Others have suggested alternative routes,
but if you want to use IF you could try:
=IF(AND(A1=0,A1<=9),"normal",IF(AND(A1=10,A1<=13 ),"mild",IF(AND(A1=14,A1<=20),"severe",IF(A1=28, "extremely
severe","answer undefined"))))
You could simplify the formula if you know that the input number is integer
(so that you don't fall between your specified categories), and/or if you
know that it isn't negative.
--
David Biddulph
"tam25" wrote in message
...
I am trying to get a formula that will do the following:
a score of:
0-9 = normal
10-13 = mild
14-20 = moderate
21-27 = severe
28+ = extremely severe
i tried doing an if function but it won't allow more than 5 (i think) if
functions. could someone please advise if 'if' is the function to use or
whether I should be trying something else?
thanks heaps
|