How can I use the AVERAGEIFS function to average a range that includes all the row columns in a worksheet without returning the #DIV0! error value? I'm using the below forumla to return the average of rows meeting multiple criteria. I want to have the forumla return "16", but I'm getting the #DIV0! error value. I need to have the formula scan the entire column, becaus the row count will grow as I add rows of data each day. I want the formula to automatically figure the average when I cut and paste the data into each column. I'm reading that this formula will return the #DIV0! error value if it includes <Blank> cells. I believe this is what is happening. Is there a way around this? How can I have the formula automatically constrain to the first and last data entry in A:A to figure the average?
=AVERAGEIFS(A:A,B:B,"="&"APPLE",C:C,"="&"RED")
A B C
------ ------- -------
12 APPLE RED
10 ORANGE ORANGE
15 APPLE RED
26 APPLE RED
<BlanK> <BlanK> <BlanK>
<BlanK> <BlanK> <BlanK>
<BlanK> <BlanK> <BlanK>
<BlanK> <BlanK> <BlanK>
| | |
| | |
| | |
V V V
All the way to the last cell int the spreadsheet
=AVERAGEIFS(A:A,B:B,"="&"APPLE",C:C,"="&"RED")
A B C
------ ------- -------
12 APPLE RED
10 ORANGE ORANGE
15 APPLE RED
26 APPLE RED
<BlanK> <BlanK> <BlanK>
<BlanK> <BlanK> <BlanK>
<BlanK> <BlanK> <BlanK>
<BlanK> <BlanK> <BlanK>
| | |
| | |
| | |
V V V
All the way to the last cell int the spreadsheet
Last edited: