• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

#Div/0! Error

VHaig

New Member
Hi

Can someone help me with this formula?

=AVERAGEIF(Bookings!$A$2:$A$350,A2,(Bookings!$K$2:$K$35))

Works fine with cell A2 is populated but when it isn't I get the #DIV/0! error. What can I do to my formula so the cell will appear blank until A2 is populated?

Thanks
V
 
Dear VHaig
the below formula will show cell blank if there is error. Hope that's what you want. Let me know if my understanding in wrong.

=IFERROR(AVERAGEIF(Bookings!$A$2:$A$350,A2,(Bookings!$K$2:$K$35)),"")
 
Dear VHaig
the below formula will show cell blank if there is error. Hope that's what you want. Let me know if my understanding in wrong.

=IFERROR(AVERAGEIF(Bookings!$A$2:$A$350,A2,(Bookings!$K$2:$K$35)),"")

Fantastic many thanks.
 
There are many way, you can use the CF & change the colour to the cell colour when an error appears or use the Iserror formula.
 
Back
Top