a sum based on other fields.

Hello,

I have a large sharepoint list. Within an excel file data connection to this list.
In this excel i have created a table were all data is in.

Based on the value's of some of the field i want to make some calculations.
For example, from the table below i would like to know the total revenue of month 1 for all customers expect c.
Is there anyway do this?

month      revenue      customer
1       € 10,00       a
1       € 20,00       a
1       € 25,00       b
1       € 40,00       c
2       € 50,00       a
2       € 1,00       a
2       € 4,00       b
2       € 182,00       c
Hans de JonghAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
So if the column A is the Month, column B is Revenue and column C is Customers, try this...

=SUMIFS(B:B,A:A,1,C:C,"<>c")

Open in new window

The above formula will get you the total revenue for the month 1 and for all the customers except the customer c.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Hans de JonghAuthor Commented:
thanks for the fast reply.
Im getting this:

2019-02-14_20-18-18.jpg
what am i doing wrong?
Hans de JonghAuthor Commented:
AH =SUMIFS(B:B;A:A;1;C:C;"<>c")

thanks aloT!
Price Your IT Services for Profit

Managed service contracts are great - when they're making you money. Yes, you’re getting paid monthly, but is it actually profitable? Learn to calculate your hourly overhead burden so you can master your IT services pricing strategy.

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
What do use as a separator in the formulas, a comma or a semicolon?
If you use a semicolon, replace all the commas with a semicolon.
b
Btw I have logged off and on mobile now.
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Glad you tweaked it. 👍
Ajay ChananaMCSE-2003/08|RHCSA| VCP5/6 |vExpert2018Commented:
Select all and use (PIVOT table) under insert tab.

Put  Month and Customer under Filters

Put Sum of Months Under values.
Ajay ChananaMCSE-2003/08|RHCSA| VCP5/6 |vExpert2018Commented:
Check the desired result below. This is one more option to play around.
2019-02-15-01_10_08-.png
Hans de JonghAuthor Commented:
thanks, i tried it with a pivotable but i need for multiple months and years. I couldnt get that working.
The sumifs worked...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.