SUMIFS minus another SUMIFS

pook_666

Board Regular
Joined
Aug 16, 2018
Messages
94
Hi magicians,

I have the below list of info. What I am trying to do is sum column B if column A states A then minus the sum of column B if column A states "IN" and column C states "IEP" ( so forgetting row 3).

So the total should be 275,000 - 95,000 = 180,000.

For column A, "OUT" will always have "IEP" in column C whereas "IN" will either have "IEP" or "bank".

Getting the 275,000 is simple as will just do:
Excel Formula:
=SUMIF(A:A,"OUT",B:B)

It's the second part that I'm struggling with as believe will require a SUMIFS but just can't seem to get it to work.

Any ideas will be grateful!

1641987557313.png
 

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.
You have to use SUMIFS, which allows for multiple conditions, i.e.
Excel Formula:
=SUMIFS(B:B,A:A,"OUT",C:C,"IEP") - SUMIFS(B:B,A:A,"IN",C:C,"IEP")
 
Upvote 0
Solution

Forum statistics

Threads
1,215,459
Messages
6,124,947
Members
449,198
Latest member
MhammadishaqKhan

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