[英]How to reference a specific cell in a formula based on the contents of two other cells
[英]how to reference a specific cell in a formula if other cells match a specific value
非常感謝您看我的問題。 但是,我正在嘗試創建一個從另一個公式中減去特定值的公式。 該特定值可能會改變。
例子:
A B C D
1 1 100 =(2000 - ( if A = 1, i want to subtract the C value where B =1))
1 2 250
1 3 310
1 4 .
2 1
2 2 =((2000 - ( if A = 2, i want to subtract the C value where B =1))
2 3
2 4
3 1
3 2
3 3
3 4
(A,B,C,D 是列)
希望這是有道理的。 我試圖減去與每個不同 A 的 B1 值一起出現的 C 值。
我正在考慮某種索引匹配,但不確定當 A 發生變化時如何做到這一點。 非常感謝您的幫助!
INDIRECT 或 INDEX 函數可以幫助您。 看到這個答案。
如果 function 在這里為您工作,像嵌套的東西嗎? 例如:
=IF(A2=1,IF(B2=1,2000-C2,"Enter calculation if B2<>1"),"Enter calculation if A2"<>1)
如果這可行,那么您可以簡單地將 function 復制/粘貼到 D 列的行中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.