Excluding Blank Cells when using =Average

commodoros

New Member
Joined
Nov 22, 2005
Messages
7
I am having a difficult time figuring out how to create an =Average formula that excludes blank cells.

The situation is thus:

I have to create a report everyday based upon a variable number of data entries. Some days there will be 5000 pieces of information. Some days 500.

I want to create a formula that will automatically average several different pieces of information automatically once it is imported from a .csv file.

I need the formula to average the information in column C, but only if it meets the criteria in column A.

A formula like this works when the array is concretely defined
=AVERAGE(IF(A2:A100="East",C2:C10))

But I need to make it work without a concretely defined column C, because as I mentioned earlier, somedays column C will have 5000 entries and somedays it will have only 500.

I would like it to work like this
=AVERAGE(IF(A2:A100="East",C:C))
or
=AVERAGE(IF(A2:A100="East",C2:C10000))

But I can't make it work. Any advice would be greatly appreciated.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,226,216
Messages
6,189,675
Members
453,562
Latest member
overmyhead1

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