Help subtracting B from F if values in Column A and E match

carlinhosg

Board Regular
Joined
Mar 22, 2005
Messages
64
I need help creating a formula that will subtract values on Columns B from F if the values on Columns A and E match. I'd like the results to be displayed on columns C. So cell C3 would be 400, C4 would be 100... C8 would be -600

Can Someone help? Thanks in advance.
Book2
ABCDEF
2
3Carlos500Adriana600
4Jorge400Jorge300
5Samara300Samara200
6Mike200Carlos100
7Nygel100Mike50
8AdrianaNygel
9GeneGene
10Diane
11Jeff
Sheet1
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Try:

=IF(ISNA(MATCH(A3,$E$3:$E$11,0)),"",B3-INDEX($F$3:$F$11,MATCH(A3,$E$3:$E$11,0)))

Which will display a blank cell if there is no match.

Or:

=IF(ISNA(MATCH(A3,$E$3:$E$11,0)),B3,B3-INDEX($F$3:$F$11,MATCH(A3,$E$3:$E$11,0)))

Which will display the value in column B if there is no match.
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,757
Members
449,094
Latest member
dsharae57

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top