Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9786

Using multiple IF statements to return a value based on multiple ranges

$
0
0

I'm trying to write an IF statement for whether an engine size is small (900 - 1400), medium (1401 - 2000) or large (>2000).

The engine sizes are in the B column.

I'm not really sure how to approach this. What I've currently written keeps returning an error:

=IF(AND(B2>=900;B2<=1400);"Small"), IF(AND(B2>=1401;B2<=2000);"Medium"), IF(B2>=2001),"Large"

I'd really appreciate it if anyone could point out what I'm doing wrong.


Viewing all articles
Browse latest Browse all 9786

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>