在我的Google表格中,我需要获取J2和J32之间最后填充的单元格中的数字。几乎每天都会填充一个新的Cell。例如,我需要获得J27:
到目前为止,我一直在使用31个IF语句:
=IF(
J32 = "",
IF(
J31 = "",
IF(
J30 = "",
IF(
J29 = "",
IF(
J28 = "",
IF(
J27 = "",
IF(
J26 = "",
IF(
J25 = "",
IF(
J24 = "",
IF(
J23 = "",
IF(
J22 = "",
IF(
J21 = "",
IF(
J20 = "",
IF(
J19 = "",
IF(
J18 = "",
IF(
J17 = "",
IF(
J16 = "",
IF(
J15 = "",
IF(
J14 = "",
IF(
J13 = "",
IF(
J12 = "",
IF(
J11 = "",
IF(
J10 = "",
IF(
J9 = "",
IF(
J8 = "",
IF(
J7 = "",
IF(
J6 = "",
IF(
J5 = "",
IF(
J4 = "",
IF(
J3 = "",
IF(
J2 = "",
"",
J2
),
J3
),
J4
),
J5
),
J6
),
J7
),
J8
),
J9
),
J10
),
J11
),
J12
),
J13
),
J14
),
J15
),
J16
),
J17
),
J18
),
J19
),
J20
),
J21
),
J22
),
J23
),
J24
),
J25
),
J26
),
J27
),
J28
),
J29
),
J30
),
J31
),
J32
) - Gesamt!Y$34
我怀疑它没有给我正确的结果,因为有些数字有时会被关闭。有更好的方法吗?
答案 0 :(得分:2)
您可以使用以下公式:=INDEX(J2:J32, MATCH(MAX(J2:J32),J2:J32, 1))
基本上,它读取为在最后一次匹配的位置找到项目的值,该数字小于或等于J2:J32范围内的最大数字。
INDEX:https://support.google.com/docs/answer/3098242?hl=en&ref_topic=3105472 比赛:https://support.google.com/docs/answer/3093378
答案 1 :(得分:2)
我建议:
=vlookup(1E+100,J2:J32,1)
虽然如果J2:J32中的任何数字都大于或大于:
,这可能会给出错误答案10,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000。
假设J2和J32之间的 包括搜索范围内的J2和J32。