简体   繁体   中英

How do I create an if-then formula in excel that produces a written text answer?

=IF(J35>130,["Way_Above_Average"]),IF(AND(J35>=119,J35<=130),["Above_Average"]),IF(AND(J35>=109,J35<=118),["High_Average"]),IF(AND(J35>=89,J35<=108),["Average"]),IF(AND(J35>=80,J35<=90),["Low_Average"]),IF(AND(J35>=68,J35<=79),["Below_Average"]),IF(AND(J35>=61,J35<=67),["Way_Below_Average"]))

I am trying to create a "report template" that takes the raw testing data of students from a Normed test...and creates a description of the score as compared to peers in the same grade.

=IF(J35>130,["Way_Above_Average"]),IF(AND(J35>=119,J35<=130),["Above_Average"]),IF(AND(J35>=109,J35<=118),["High_Average"]),IF(AND(J35>=89,J35<=108),["Average"]),IF(AND(J35>=80,J35<=90),["Low_Average"]),IF(AND(J35>=68,J35<=79),["Below_Average"]),IF(AND(J35>=61,J35<=67),["Way_Below_Average"]))

I keep getting error messages about syntax and name...want this to create a text descriptor from the raw standard score.

Just taking the first two levels, I would put:

=IF(J35>130,"Way_Above_Average",IF(J35>=119,"Above_Average"),"")

As you should not need the square brackets or the and() as if the number tested is above 130 it has already been controlled.

Just for fun, here is a vlookup equivalent: 在此处输入图片说明

您可以使用:

=IFERROR(CHOOSE(MATCH(J35,{61,68,80,89,109,119,130}),"Way_Below_","Below_","Low_","","High_","Above_","Way_Above_") & "Average","Below_61")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM