How can I average individual cells that are >0 but NOT in a continuous range?

On IPhone Numbers spreadsheet. I can’t get “Averageif” to do it.

iPhone 15 Plus, iOS 18

Posted on Jan 29, 2025 2:29 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 30, 2025 1:22 PM

Something like this might do what you want. You can include additional ranges:


=AVERAGEIF(UNION.RANGES(0,B2:B3,C6:E8),">0")


Or rearrange/redesign your spreadsheet so the things you want to average together are together in a contiguous range or only blank cells or text between them (both of which are ignored by most numeric fucntions, such as averageif)

2 replies
Question marked as Top-ranking reply

Jan 30, 2025 1:22 PM in response to MacNovice9

Something like this might do what you want. You can include additional ranges:


=AVERAGEIF(UNION.RANGES(0,B2:B3,C6:E8),">0")


Or rearrange/redesign your spreadsheet so the things you want to average together are together in a contiguous range or only blank cells or text between them (both of which are ignored by most numeric fucntions, such as averageif)

Jan 30, 2025 12:55 PM in response to MacNovice9

Can you show your work.


Most specifically, what do you mean by 'not in a continuous range'? That could be interpreted many ways.


For example, a column of values with gaps in the middle could be construed as 'not in a continuous range'.

But maybe you mean multiple, non-adjacent columns, which is a little harder to do. For this, you likely need to calculate the respective SUM() and COUNT() values and divide them.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How can I average individual cells that are >0 but NOT in a continuous range?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.