Sumifs excluding a range of reference values

cgsierra

Board Regular
Joined
Mar 21, 2011
Messages
142
Office Version
  1. 365
Hello,
I'm trying to write a formula that excludes a set of values
in sheet 1, in cells A1 through A5 I have Name 1, Name 2, Name 3, Name 4, Name 5.
In sheet 2, in pivot table format I have hundreds of names in column A, in column B I have the corresponding revenue for each name, and in column C I have the Gross Profit which can be positive or negative.
I want to retrieve the total revenue from column B in sheet 2 excluding the names in sheet 1, excluding the names with negative Gross Profit and excluding the Grand Total line from the pivot table.
I have something like this:
=SUMIFS(B:B,A:A,"<>'Sheet 1'!A1:A5",A:A,"<>Grand Total",C:C,">0")
It doesnt seem to be working. It does not exclude the revenue related to the names in 'Sheet 1'!A1:A5
can you please help me?
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
I also tried the following formula but it doesn't exclude the revenue corresponding to the names in 'Sheet 1'!A1:A5 either:
=(SUMPRODUCT(SUMIFS(B:B,A:A,"<>'Sheet 1'!A1:A5",A:A,"<>Grand Total",C:C,">=0")))

Hello,
I'm trying to write a formula that excludes a set of values
in sheet 1, in cells A1 through A5 I have Name 1, Name 2, Name 3, Name 4, Name 5.
In sheet 2, in pivot table format I have hundreds of names in column A, in column B I have the corresponding revenue for each name, and in column C I have the Gross Profit which can be positive or negative.
I want to retrieve the total revenue from column B in sheet 2 excluding the names in sheet 1, excluding the names with negative Gross Profit and excluding the Grand Total line from the pivot table.
I have something like this:
=SUMIFS(B:B,A:A,"<>'Sheet 1'!A1:A5",A:A,"<>Grand Total",C:C,">0")
It doesnt seem to be working. It does not exclude the revenue related to the names in 'Sheet 1'!A1:A5
can you please help me?
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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