AVERAGEIF TROUBLES

standw01

New Member
Joined
Nov 13, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I was doing my mothers budget and thought it would be a good idea to have each months predicted and actual expenses roll up into another sheet so she could see what her avearge bill would be year to date. Here is the formula that is currently in there...=AVERAGE('NOV 24'!C4,'DEC 24'!C4,'JAN 25'!C4,'FEB 25'!C4,'MAR 25'!C4,'APR 25'!C4,'MAY 25'!C4,'JUN 25'!C4,'JUL 25'!C4,'AUG 25'!C4,'SEP 25'!C4,'OCT 25'!C4,'NOV 25'!C4,'DEC 25'!C4). The problem is that it is averaging based off twelve months. I am trying to get the formula to exclude the months that have not happened yet. I tried Averageif to exclude zeroes, but it keeps giving me errors. I'm sure this is easy for most on here, but I am stumped.
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

kvsrinivasamurthy is right that the average function will ignore blank cells.
My formula in post 2 will not work if there is a 0 in cells C4.
If you can change the cells in C4 to blank if there is no data or if you have a forumla in cells C4 maybe make it an IF forumla that makes the cell blank if there is no data.
Then you should be able to change your formula to:
AVERAGE('NOV 24:DEC 25'!C4)
 
Upvote 0

Forum statistics

Threads
1,223,630
Messages
6,173,457
Members
452,516
Latest member
archcalx

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top