Sumifs function in conjunction with other formula, counta, countif and countifs

leenux_tux

New Member
Joined
Aug 28, 2008
Messages
19
Hello Forum,

Trying to solve a problem in Excel and cannot find the combination of formulas to fix. Been racking my brain and "googling" but to no avail. Wondering if anyone else on the forums here has had a similar challenge.

Some background first.


  • There are multiple records keyed to the month, i.e. October which is column A
  • There are no fixed number of records for the month, could be 100, could be 150, could be 200.
  • There are multiple columns on sheet with data I want to do calculations on based on the value that is in column A.
  • The calculations are not simple "sum", could be working out average so need to use "counta" and/or countif/countifs with the sum

I have looked into using sumifs, keying to the month in column A, however, I haven't seen any examples where the calculation being done isn't a standard "sum" (i.e. a divide, or multiply)

Some sample data below. Example calculation, I only want to an average of data in column C where Column A is October.


[TABLE="width: 500"]
<tbody>[TR]
[TD]SEPTEMBER[/TD]
[TD]16.00[/TD]
[TD]£32.00[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SEPTEMBER[/TD]
[TD]-24.00[/TD]
[TD]-£12.00[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]OCTOBER[/TD]
[TD]-28.60[/TD]
[TD]-£28.60[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]OCTOBER[/TD]
[TD]2.50[/TD]
[TD]£5.00[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]OCTOBER[/TD]
[TD]-15.90[/TD]
[TD]-£15.90[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

To me you would use sumifs to say

"Only use values where column A is OCTOBER"

Then
"Count the number of instances of OCTOBER" and use that value in the divide for the sum of (for example) column C

Hopefully I have given a reasonable description of the problem.

Thanks in advance

L
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,223,977
Messages
6,175,753
Members
452,667
Latest member
vanessavalentino83

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