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

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
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,686
Messages
6,126,202
Members
449,298
Latest member
Jest

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