averages - Ignoring some cells

nparsons75

Well-known Member
Joined
Sep 23, 2013
Messages
1,254
Office Version
  1. 2016
I need to chart the average of some data over a number of months.

For example, I have 12 columns, Jan to Dec.

In each month is a percentage.

Jan - 46%
Feb - 25%
Mar - 60%
Apr - 55%
May - 47%
June - 38%

Now, I need to calculate the average of these percentages, which is easy aprt from this.

I need to take the average of all 12 months, but only include the months will good data, ie, jan to jun. July to december has a formula in there but not good data as yet.

So when data is good for July and entered this will become part of the average. As it is now my average takes into account all 12 months therefore incorrect.

All help appreciated.
 
In older versions you could use

=AVERAGE(IF(B1:B12>0,B1:B12))

(Entered as an array)
 
Upvote 0

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
I think (maybe wrong), countif & averageif became available from Excel 2007.
Countif can be used in Excel 2003

Maybe you are thinking of Countifs which became available in Excel2007
 
Upvote 0
Hi, how could I ignore errors also with this formula?

=AVERAGEIF(D61:O61,">"&0,D61:O61)
 
Upvote 0

Forum statistics

Threads
1,215,254
Messages
6,123,893
Members
449,132
Latest member
Rosie14

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