在 sheet 中查找最后一个值,其中其他单元格包含值
Lookup last value in sheet where other cell contains value
我正在尝试在 sheet 中查找值的最后一个实例。该值是货币数量,条件应该是货币类型是否为收入。例如,我有一个 sheet 和
Date Name Amount Type
2019-08-01 Cash on hand 52.52 Income - Allowance
2019-08-02 Cash on hand 33.33 Income - Hourly
我想匹配最新的收入金额(33.33
)并显示在另一个单元格中。
我试过 Get the last non-empty cell in a column in Google Sheets 中的 =INDEX(FILTER(A:A;NOT(ISBLANK(A:A)));ROWS(FILTER(A:A;NOT(ISBLANK(A:A))))
之类的东西,我尝试把 "Income*
代替 NOT(ISBLANK())
。我也尝试做一个链MAX(FILTER())
,但我得到一个错误:
FILTER has mismatched range sizes. Expected row count: 999. column count: 1. Actual row count: 1, column count: 1.
如有任何帮助,我们将不胜感激。
=QUERY(A2:D, "select C where D matches 'Incom.*' offset "&COUNTA(
QUERY(A2:D, "select C where D matches 'Incom.*'", 0))-1, 0)
我正在尝试在 sheet 中查找值的最后一个实例。该值是货币数量,条件应该是货币类型是否为收入。例如,我有一个 sheet 和
Date Name Amount Type
2019-08-01 Cash on hand 52.52 Income - Allowance
2019-08-02 Cash on hand 33.33 Income - Hourly
我想匹配最新的收入金额(33.33
)并显示在另一个单元格中。
我试过 Get the last non-empty cell in a column in Google Sheets 中的 =INDEX(FILTER(A:A;NOT(ISBLANK(A:A)));ROWS(FILTER(A:A;NOT(ISBLANK(A:A))))
之类的东西,我尝试把 "Income*
代替 NOT(ISBLANK())
。我也尝试做一个链MAX(FILTER())
,但我得到一个错误:
FILTER has mismatched range sizes. Expected row count: 999. column count: 1. Actual row count: 1, column count: 1.
如有任何帮助,我们将不胜感激。
=QUERY(A2:D, "select C where D matches 'Incom.*' offset "&COUNTA(
QUERY(A2:D, "select C where D matches 'Incom.*'", 0))-1, 0)