Forum Discussion
Ade_On360
May 18, 2021Copper Contributor
IFS AND Function
Hey so I'm trying to create a column where depending on the amount of points a column would display Level 1, Level 2, Level 3 The point are distributed Level 1 (0 - 219) Level 2 (220 - 339) L...
amit_bhola
May 21, 2021Iron Contributor
Ade_On360 Hi, just for the academic purpose, if it is to be done using IF and AND, then the solution is as below/attached. Take care to close the bracket for AND function within IF function. When a function is used within another function, its bracket needs to be closed each time.
And yes, the lookup table method using VLOOKUP is recommended instead of IF function for no. of levels beyond two. Lookup method is easy to understand and it is also easy to manage the change of level defining numbers by just typing the new values into the lookup table cells.
=IF(AND(C2>=0,C2<220),"Level 1",IF(AND(C2>=220,C2<340),"Level2",IF(AND(C2>=340,C2<=480),"Level3","Level not defined")))