Sum value based on multiple criteria

ten1jmj

New Member
Joined
Jan 10, 2019
Messages
7
Thank you for any assistance you can give,

I am trying to sum the revenue for each carrier based on the date and get the average for each carrier per month. I have the following formula which nets me the average per month based on all carriers, but I can't figure out how to obtain the results when a specific carrier is desired.

=IFERROR(SUMIFS(Data!$I$2:$P$1048576,Data!$BO$2:$BV$1048576,">="&"12/01/2018",Data!$BO$2:$BV$1048576,"<="&"12/31/2018")/COUNTIFS(Data!$BO$2:$BV$1048576,">="&"12/01/2018",Data!$BO$2:$BV$1048576,"<="&"12/31/2018",Data!$I$2:$P$1048576,">0"),"")


[TABLE="width: 757"]
<tbody>[TR]
[TD]Name
[/TD]
[TD]Carrier
[/TD]
[TD]Revenue Week 1
[/TD]
[TD]Revenue Week 2
[/TD]
[TD]Revenue Week 3
[/TD]
[TD]Revenue Week 4
[/TD]
[TD]Week 1 Date
[/TD]
[TD]Week 2 Date
[/TD]
[TD]Week 3 Date
[/TD]
[TD]Week 4 Date
[/TD]
[TD]Week 5 Date
[/TD]
[/TR]
[TR]
[TD]AA
[/TD]
[TD]abc-50
[/TD]
[TD]50
[/TD]
[TD]90.55
[/TD]
[TD]131.1
[/TD]
[TD]171.65
[/TD]
[TD]12/14/2018
[/TD]
[TD]12/21/2018
[/TD]
[TD]12/28/2018
[/TD]
[TD]1/4/2019
[/TD]
[TD]1/11/2019
[/TD]
[/TR]
[TR]
[TD]BB
[/TD]
[TD]abc-ml
[/TD]
[TD]40
[/TD]
[TD]49.99
[/TD]
[TD]59.98
[/TD]
[TD]
[/TD]
[TD]12/21/2018
[/TD]
[TD]12/28/2018
[/TD]
[TD]1/4/2019
[/TD]
[TD]1/11/2019
[/TD]
[TD]1/18/2019
[/TD]
[/TR]
[TR]
[TD]CC
[/TD]
[TD]def
[/TD]
[TD]35.5
[/TD]
[TD]50
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]12/28/2018
[/TD]
[TD]1/4/2019
[/TD]
[TD]1/11/2019
[/TD]
[TD]1/18/2019
[/TD]
[TD]1/25/2019
[/TD]
[/TR]
[TR]
[TD]DD
[/TD]
[TD]adc-ml
[/TD]
[TD]88.1
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]1/4/2019
[/TD]
[TD]1/11/2019
[/TD]
[TD]1/18/2019
[/TD]
[TD]1/25/2019
[/TD]
[TD]2/1/2019
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
I'm new to MrExcel so I apologize if I didn't provide enough information in the original post. My goal is to fill in a table similar to the one below as input is added to a master spreadsheet. I've tried adding an additional criteria range and criteria to the formula stated in the original post, in order to specify the "carrier" I need. (I'm wanting to create a similar table for each carrier), but I get a return of #VALUE !.

Again, thank you for providing any assistance possible.

[TABLE="width: 1675"]
<tbody>[TR]
[TD="colspan: 15"]Abc-50
[/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]Dec-18
[/TD]
[TD]Jan-19
[/TD]
[TD]Feb-19
[/TD]
[TD]Mar-19
[/TD]
[TD]Apr-19
[/TD]
[TD]May-19
[/TD]
[TD]Jun-19
[/TD]
[TD]Jul-19
[/TD]
[TD]Aug-19
[/TD]
[TD]Sep-19
[/TD]
[TD]Oct-19
[/TD]
[TD]Nov-19
[/TD]
[TD]Dec-19
[/TD]
[TD]2019
[/TD]
[/TR]
[TR]
[TD]Average Revenue
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,269
Members
452,628
Latest member
dd2

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