1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

Average cells ignoring both 0s and #VALUE!

Our take

If you're looking to calculate the average of a range while ignoring both 0s and #VALUE! errors, you're not alone. Many users encounter challenges with this, especially when working with mixed data sets. The formula options you've tried, such as using AGGREGATE, are promising but may need some adjustments. By refining your approach, you can effectively streamline your calculations, ensuring that only valid numbers contribute to the average. Let’s explore a solution that empowers you to achieve accurate results effortlessly.

I am trying to create a formula to ignore both 0s and #VALUE!. My G4-G15 column has 0-10 and a #VALUE!. I have tried the below and any help is appreciated.

=AGGREGATE (1,6,(G4:G15*(G4:G15<>0)))

=AGGREGATE (1,6,(G4:G15/(G4:G15<>0)))

=IFERROR(AVERAGE(G4:G15<>0),G4:G15)

=IFERROR(AVERAGE(G4:G15<>0),"")

=AGGREGATE (1,7,(G4:G15*(G4:G15<>0)))

=AGGREGATE (1,7,(G4:G15/(G4:G15<>0)))

submitted by /u/Wicked-Storm
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Tagged with

#rows.com#AI formula generation techniques#Excel compatibility#Excel alternatives for data analysis#formula generator#Excel alternatives#AGGREGATE#AVERAGE##VALUE!#IFERROR#ignore#G4:G15#0s#formula#Excel#column#error handling#spreadsheet#range#cells