Grand Total, but exclude some accounts

Warmhearted

Board Regular
Joined
Nov 17, 2012
Messages
96
Office Version
  1. 2019
Platform
  1. Windows
I used formula
SUMIFS(B4:B1200,A4:A1200,"<>",B4:B1200,"<>")

to grand sum below accounts, but can you adjust the formula to exclude certain account such as 120? Thanks!

164.76​
SUMIFS(B4:B1200,A4:A1200,"<>",B4:B1200,"<>") 164.76 is grand total of 4 accounts
40​
13.95​
21.07.01
40​
17.75​
21.07.01
31.7​
45​
75.45​
21.07.07
45​
3.5​
21.07.15
45​
9.8​
21.07.15
88.75​
50​
14.5​
21.07.07
50​
2.8​
21.07.13
17.3​
120​
12​
120​
15.01​
27.01​
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Try:

Excel Formula:
=SUMIFS(B4:B1200,A4:A1200,"<>",B4:B1200,"<>",A4:A1200,"<>120")
Hi Eric,
It work perfectly.

Could this formula exclude another account in words such as "Target" instead of numbers?
 
Upvote 0
Sure, something like this:

Excel Formula:
=SUMIFS(B4:B1200,A4:A1200,"<>",B4:B1200,"<>",A4:A1200,"<>120",F4:F1200,"<>Target")
 
Upvote 0
Sure, something like this:

Excel Formula:
=SUMIFS(B4:B1200,A4:A1200,"<>",B4:B1200,"<>",A4:A1200,"<>120",F4:F1200,"<>Target")
Hi Eric,
I changed F in the formula to A and it works perfectly. It your credit! Thanks so much Eric.
 
Upvote 0

Forum statistics

Threads
1,215,094
Messages
6,123,071
Members
449,092
Latest member
ipruravindra

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