I really am stuck need to average the answers across a row sometimes these will be blank, but they are alternate eg, h5,j5,l5,n5,r5 need to get a accurate average figure.if somebody can help i am new to excel. I am using 2007. Thanks in advance.
When using the AVERAGE function, empty cells (or blank cells) are not counted. Anything with a zero value is though. (type "average'" into Help on Excel and it explains further).
So, taking this into account, and assuming your 'blank' cells really are blank, you can average by the following:
=AVERAGE(H5:R5)
Of course, anything from H5 to R5 gets averaged (unless, as I stated, it is truely blank).
you can get around this by going back to first principles of averaging - i.e. average = sum divided by count
sum(cell1:cell2) will be correct
but count(cell1:cell2) can be wrong in certain circumstances, such as when the formula returns "" (which annoyingly, is not the same as an empty cell). Instead, you could replace this with e.g. countif(cell1:cell2,<>"") or countif(cell1:cell2,">0")
they work but if a number is inputed between the rows it gives a different answer. sorry i cant give a example as the information on the sheet is confidential.
I really am stuck need to average the answers across a row sometimes these will be blank, but they are alternate eg, h5,j5,l5,n5,r5 need to get a accurate average figure.if somebody can help i am new to excel. I am using 2007. Thanks in advance.
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.