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

AverageIF function returns with a #DIV/0! because the criteria does not exactly match.

I am working with a set of values where there are repeated x values with multiple y values. For example, x value of 10 would have values like -0.5, -0.51, -0.52. I am trying to get the average of these y values for each x value in 0.01 increments.

The averageif work functions works up until a certain point that it just returns with #DIV/0!. When I check the error, the criteria doesn't match the cell on its left. In the photo, the criteria shows as 16.51000....01 when the real criteria (on the left) is 16.51. Where is the error coming from?

The way I typed up the x values in 0.01 increments is typing 0.0 and 0.01 and dragging that down to my target value. I tried the sequence function as well but I get a similar error.

https://preview.redd.it/nqxm49h65bvg1.png?width=963&format=png&auto=webp&s=9ab15643dd08220a3d02b5a603acabf493a9fee3

submitted by /u/punksakura
[link] [comments]

Want to read more?

Check out the full article on the original site

View original article

Tagged with

#financial modeling with spreadsheets
#Excel alternatives for data analysis
#natural language processing for spreadsheets
#generative AI for data analysis
#rows.com
#Excel compatibility
#real-time data collaboration
#real-time collaboration
#Excel alternatives
#AverageIF
##DIV/0!
#criteria
#x values
#y values
#increments
#average
#error
#matching
#sequence function
#target value