2014-07-09 151 views
0

我有四列結構,像這樣:細胞匹配和比較

Column A: Data title for metric. 
Column B: Corresponding metric for data title in Column A. 
Example: 
    Row 50 |BlahBlah | 5 | 
Column C: Same as Column A from above. 
Column D: Same as Column B from above. 
Example: 
    Row 10 |BlahBlah | 10 | 

我想要做的就是第五列,列E,在這裏我先來說一下標題從A欄的範圍C列,如果這個標題存在於列C的範圍內,那麼我想從列D中減去列B中的相應度量。

所以在上面的例子中,我會匹配列A,行50與列C ,第10行和列E中的條目將是5

+0

你想在公式或VBA中做到這一點? – Andrew

+0

公式。類似的問題在哪裏? – Heplar

+1

@Heplar:pnuts指的是你之前8個問題的13個答案,而且你似乎沒有任何答案。 –

回答

0

可能:

=IFERROR(VLOOKUP(A2,C:D,2,0)-VLOOKUP(A2,A:B,2,0),"") 

複製下來,以適應。