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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
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,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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