Richard J. Summers
New Member
I have a budget spreadsheet where I need an average of numbers from a particular cell located in 12 different sheets, ‘January’ through ‘December’, without it counting the blank cells as part of the divisor in the average calculation. If only “12” and “6” are entered, I want it to give an average of “9” (the average of 12 and 6), and not “1.5” (the total of 18 divided by 12 (months)).
The “Average” function does not exclude those blanks, so I tried the “AverageIf” with the ,"<>" at the end. It looks like this:
In the C column:
=AVERAGEIF(January!D2,February!D2,March!D2,April!D2,May!D2,June!D2,July!D2,August!D2,September!D2,October!D2,November!D2,December!D2,"<>")
This I think, would work, but it doesn’t. I have a Google Sheets spreadsheet that does this, with that exact formula, but I want it to work in Excel, which I believe to be a much better program. Excel processes the inputs much faster than Google Sheets. Plus, more people have it.
My problem is, that in Excel I get a warning that states
Too many arguments? How do I get around that?
I have a strong feeling that I am close, but am not doing something quite right. Of course I am open to any suggestions, or even an entirely different way to accomplish this, and I would really be thankful for any help. The spreadsheet is attached if you need to see the whole thing.
I really hope someone can help.
The “Average” function does not exclude those blanks, so I tried the “AverageIf” with the ,"<>" at the end. It looks like this:
In the C column:
=AVERAGEIF(January!D2,February!D2,March!D2,April!D2,May!D2,June!D2,July!D2,August!D2,September!D2,October!D2,November!D2,December!D2,"<>")
This I think, would work, but it doesn’t. I have a Google Sheets spreadsheet that does this, with that exact formula, but I want it to work in Excel, which I believe to be a much better program. Excel processes the inputs much faster than Google Sheets. Plus, more people have it.
My problem is, that in Excel I get a warning that states
“You’ve entered too many arguments for this function”
Too many arguments? How do I get around that?
I have a strong feeling that I am close, but am not doing something quite right. Of course I am open to any suggestions, or even an entirely different way to accomplish this, and I would really be thankful for any help. The spreadsheet is attached if you need to see the whole thing.
I really hope someone can help.
Attachments
Last edited: