Google 具有多个条件的电子表格公式
Google spreadsheet formula with several conditions
我有以下数据 - 数字、值、日期。我需要根据以下条件找到合适的百分比:
0-10 - 40%
11-20 - 50%
21-40 - 60%
和一些 70% 的分支机构:
If date>='2022-01-01' then, for 70%, number should be >41 and value>10, if date<'2022-01-01' then, for 70%, number >41 or value>10
这是我的测试 table - https://docs.google.com/spreadsheets/d/1HpNTirimG76bxNy0Efbzqpj8yCtFCGQ3vDIGaSAH66o/edit?usp=sharing
尝试:
=INDEX(IF(A2:A="",,
IF((C2:C>=DATE(2022, 1, 1))* (A2:A>41)*(B2:B>10), 70%,
IF((C2:C< DATE(2022, 1, 1))*((A2:A>41)+(B2:B>10)), 70%,
IFNA(VLOOKUP(A2:A, {0, 40%; 11, 50%; 21, 60%}, 2, 1))))))
我有以下数据 - 数字、值、日期。我需要根据以下条件找到合适的百分比: 0-10 - 40% 11-20 - 50% 21-40 - 60% 和一些 70% 的分支机构: If date>='2022-01-01' then, for 70%, number should be >41 and value>10, if date<'2022-01-01' then, for 70%, number >41 or value>10 这是我的测试 table - https://docs.google.com/spreadsheets/d/1HpNTirimG76bxNy0Efbzqpj8yCtFCGQ3vDIGaSAH66o/edit?usp=sharing
尝试:
=INDEX(IF(A2:A="",,
IF((C2:C>=DATE(2022, 1, 1))* (A2:A>41)*(B2:B>10), 70%,
IF((C2:C< DATE(2022, 1, 1))*((A2:A>41)+(B2:B>10)), 70%,
IFNA(VLOOKUP(A2:A, {0, 40%; 11, 50%; 21, 60%}, 2, 1))))))