Good afternoon,
I have two columns (F and G), some have a value in and some do not. I want to work out the average of the two columns, so am using:
=AVERAGE(F4:G4)
However, on the row where the values are empty in columns F and G it gives an error message. How can I make it so the cell will just appear blank rather than have a message in?
Many thanks
Last edited by Cmorgan; 12-09-2011 at 11:11 AM.
Try this for any excel version
=IF(COUNT(F4:G4),AVERAGE(F4:G4),"")
or in Excel 2007 or later
=IFERROR(AVERAGE(F4:G4),"")
Audere est facere
Try:
=IFERROR(AVERAGE(F4:G4),"")
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Many thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks