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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
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,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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