I'm trying to do a nested IF statement in excel where it takes the age in cell C20 and checks if it's in a certain range. If it is, it gets assigned a age range. When I reach the end of my IF statement, it says "There's a problem with your formula". What am I doing wrong?
The code I have is the following:
=IF(K20<=10,"<=10",IF(K20 >10 AND K20 <= 20,"11 to 20",IF(K20 > 20 AND K20 <=30, "21 to 30", IF(K20 >30 AND K20 <= 40, "31 to 40", IF(K20 >40 AND K20 <=50, "41 to 50", "51 and above")))))