简体   繁体   English

如何在excel中创建if-then公式以生成书面答案?

[英]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"])) = 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. 我正在尝试创建一个“报告模板”,以从Normed测试中获取学生的原始测试数据...并创建与同年级同龄人相比的分数描述。

=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"])) = 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. 由于您不需要方括号或and(),就好像被测试的数字大于130一样,它已经受到控制。

Just for fun, here is a vlookup equivalent: 只是为了好玩,这里有一个vlookup等效项: 在此处输入图片说明

您可以使用:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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