Forum Discussion
Sum with blank cells
This may be an easy answer but I can't seem to figure it out for some reason. I want to average 4 cells but sometimes the cell will not be filled. I want the blank cells to always represent the number 150. Can I create some formula using an IF function of some sort?
Thank you
=AVERAGE(IF(ISBLANK(A1:A4),150,A1:A4))You can try this formula for the AVERAGE. Enter the formula with ctrl+shift+enter if you don't work with Office 365 or Excel 2021.
=SUM(IF(ISBLANK(A1:A4),150,A1:A4))You can try this formula for the SUM. Enter the formula with ctrl+shift+enter if you don't work with Office 365 or Excel 2021.
2 Replies
- OliverScheurichGold Contributor
=AVERAGE(IF(ISBLANK(A1:A4),150,A1:A4))You can try this formula for the AVERAGE. Enter the formula with ctrl+shift+enter if you don't work with Office 365 or Excel 2021.
=SUM(IF(ISBLANK(A1:A4),150,A1:A4))You can try this formula for the SUM. Enter the formula with ctrl+shift+enter if you don't work with Office 365 or Excel 2021.
- nannerb1115Copper ContributorThank you very much! This worked perfectly.