English 中文(简体)
A. 确定某一数目的范围
原标题:Find what range a number belongs to
  • 时间:2012-04-25 14:01:01
  •  标签:
  • excel

Ive written a function to calculate what MARK a student gets, based on a scoring table. Why does my function work only for A mark?

以上表格所看的情况

COLUMN:    A      B      C      
        Student  SCORE  MARK
    1    adsf     90     A
    2    asgfd    89     FALSE     

    3     A       90    100
    4     B       81    89
    5     C       71    80
    6     D       61    70
    7     E        56   60
    8     Fx       0    55

这项职能:

{=IF(B1>=$B$3:$B$8,IF(B1<=$C$3:$C$8,$A$3:$A$8))}

I m 使用了{} 阵列功能括号。 (CTRL SHIFT ENTER)

谢谢。

最佳回答

你回到正确的轨道上,但你的公式是归还一个并非单一价值的阵列。 总结成果应产生预期结果:

=LOOKUP("Z",IF(B1>=$B$3:$B$8,IF(B1<=$C$3:$C$8,$A$3:$A$8))

由于“Z”在范围上比任何其他文本价值都大,因此,最后的对应等级就有了回报。

更简单的方法是:

=LOOKUP(-B1,-C$3:C$8,A$3:A$8)

需要有消极迹象,使研究价值处于 as状态。

问题回答

暂无回答




相关问题
import of excel in SQL imports NULL lines

I have a stored procedure that imports differently formatted workbooks into a database table, does work on them then drops the table. Here is the populating query. SELECT IDENTITY(INT,1,1) AS ID ...

Connecting to Oracle 10g with ODBC from Excel VBA

The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...

Excel date to Unix timestamp

Does anyone know how to convert an Excel date to a correct Unix timestamp?

C# GemBox Excel Import Error

I am trying to import an excel file into a data table using GemBox and I keep getting this error: Invalid data value when extracting to DataTable at SourceRowIndex: 1, and SourceColumnIndex: 1. As ...

Importing from excel "applications" using SSIS

I am looking for any tips or resources on importing from excel into a SQL database, but specifically when the information is NOT in column and row format. I am currently doing some pre-development ...

热门标签