sumifs with criteria range

megaman110

New Member
Joined
Aug 9, 2023
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hello everyone,

I have an issue with the following table: I am looking at a software-as-a-service company and would like to break down their subscription revenue changes Month-over-Month. One key element of this revenue change is "Upsells" which shows the additional revenue generated with exisiting customers. In below table, customer 1 was upsold with €50 and customer 3 with €20. Is there a sumif formula which allows me to aggregate those changes and gives me the total €70?

Thanks for you help, very much appreciated.
Best, Mario


Customer #
Jan/2023​
Feb/2023​
Customer 1
100.00 €​
150.00 €​
Customer 2
100.00 €​
100.00 €​
Customer 3
50.00 €​
70.00 €​
Customer 4
20.00 €​
20.00 €​
Customer 5
0.00 €​
0.00 €​
 
Of course Peter. Thanks in advance. In addition to the original table I have added another criteria ("Customer segment") which reflects the size of the customer (Small/Medium/Large). What I would now like to do is calculate the monthly revenue changes (again with new, upsell, downsell, lost) but only for one specific customer segment. In this specific the Small customer segment. This in the end allows me to analyze whether the company is performing better/worse in specific customer segments compared to others.

In addition to the original table, I have added
excel 2.png
 
Upvote 0
Thanks for the samples. See how this goes.

megaman110.xlsm
ABCDE
1
2
3Cust 1Large100150200
4Cust 2Medium1005025
5Cust 3Small507070
6Cust 4Small202010
7Cust 5Small0300
8Cust 6Large0100200
9Cust 7Small0020
10
11
12
13SmallNew703020
14Up0200
15Down00-10
16Lost00-30
Sheet1
Cell Formulas
RangeFormula
C13:E13C13=SUM(FILTER(C3:C9,(IFERROR(--B3:B9,0)=0)*($B3:$B9=$A$13),0))
C14:E14C14=SUM(IF($B3:$B9=$A13,IF(C3:C9>B3:B9,IF(B3:B9>0,C3:C9-B3:B9,0),0),0))
C15:E15C15=SUM(IF($B3:$B9=$A13,IF(C3:C9<B3:B9,IF(C3:C9>0,IFERROR(C3:C9-B3:B9,0),0),0),0))
C16:E16C16=-SUM(IF($B3:$B9=$A13,IF(C3:C9=0,IF(B3:B9>0,B3:B9,0),0),0))
 
Upvote 0
Solution

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