Averageif specific cells rather than a range

IainCD

New Member
Joined
Apr 17, 2018
Messages
11
I am trying to create an averageif formula but rather than for a range, a specific set of cells:

A1, A5, A7

I thought it would be as follows:

=averageif((A1, A5, A7), "<>"))

But this returns #Value!

Any advice or help would be much appriciated.

Iain.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Why not just use Average
=average(A1, A5, A7)
 
Upvote 0
Why not just use Average
=average(A1, A5, A7)

Thanks for the reply.

My cells on occasions will all be blank and if I used the formula above this returns #DIV/0!

Any ideas on how to get around this?

Iain.
 
Upvote 0
How about
=IFERROR(AVERAGE(A1, A5,A7),"no values")
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,575
Messages
6,120,334
Members
448,956
Latest member
Adamsxl

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