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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Try:
SUM('NOV 24:DEC 25'!C4)/COUNT('NOV 24:DEC 25'!C4)
 
Upvote 0

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,224,606
Messages
6,179,863
Members
452,948
Latest member
UsmanAli786

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