Average If Function?

drttjn

New Member
Joined
Feb 19, 2014
Messages
1
I've got a spreadsheet I need to average data in. I'm using links to pull my data from other sheets to this one. If there is no data, my other sheets display "NoData" in the cells. I did this because some of my data may contain zeros. I need to average the values of the cells that contain actual numerical data. So heres what I've got.

C3:C27 is my data range
C29 is where my formula/average will be displayed

I'm not sure how to average this data, but this is basically what I want.

If the cell contents does not = "NoData", average the values that meet this criteria


Also, seperate question, how do i reference the cell value within the formula? I used to know how to do that, but I've forgotten.
'Value' ?maybe or something similar
cell.contents
#value
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
The AVERAGE function ignores text values, so you can simply use...

=AVERAGE(C3:C27)

Also, regarding your formulas in C3:C27, instead of returning "NoData" you can actually return an empty/null string (""). So could have something like this...

=IF('Sheet2'!A2<>0,'Sheet2'!A2,"")

Hope this helps!
 
Upvote 0
Does this work for you?

=AVERAGEIF(C3:C27," < > NoData")
 
Upvote 0

Forum statistics

Threads
1,215,454
Messages
6,124,933
Members
449,195
Latest member
Stevenciu

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