SUMIF - Include/Exclude Variables From a List

torourke17

New Member
Joined
Jan 12, 2018
Messages
12
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
My billing department does a rough job at breaking down certain expenses into various categories. As a result, I designed a workbook to look at the data behind the invoice and create a revised allocation based on including and excluding certain terms within the description. The list of terms can change month to month, so I'd like my Sumif function to reference a list of inclusions/exclusions.

Can this be done?

The formula I have right now builds in the exclusions (ex: "Vendor Pricing Services" or "Items Mailed")

=ROUND(SUMIFS('Excel Invoice Drop'!$Q:$Q,'Excel Invoice Drop'!$E:$E,$L12,'Excel Invoice Drop'!$I:$I,$C$3,'Excel Invoice Drop'!$N:$N,$E$10)+SUMIFS('Excel Invoice Drop'!$Q:$Q,'Excel Invoice Drop'!$E:$E,$M12,'Excel Invoice Drop'!$I:$I,$C$3,'Excel Invoice Drop'!$N:$N,$E$10,'Excel Invoice Drop'!L:L,"<>*Vendor Pricing Services*",'Excel Invoice Drop'!M:M,"<>*Items Mailed*"),2)

Thoughts?
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
From your description, I was expecting your formula to check a single column against a list of inclusions/exclusions.

But your formula tests column L against "Vendor Pricing Services" and column M against "Items Mailed". Is that the intention? Four items on a list --> test four consecutive columns?
 
Upvote 0

Forum statistics

Threads
1,215,438
Messages
6,124,873
Members
449,192
Latest member
MoonDancer

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