Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Range Reference after Deleting Rows 1

Status
Not open for further replies.

mveera

Programmer
Nov 6, 2002
81
US
Hi,

I am displaying the sum of two columns (in sheet2) , in two cells in sheet1. the values in sheet2 will deleted and loaded based on some criteria selected by the user.
so cell1 will be sum(a1:a65536) and cell2 sum(b1:b65536).

when i delete all the rows in sheet2 i get #REF! error in the cells. Instead deleting if i do a clear it works fine. what should be the formula for the cells so that even if i delete the rows it displays 0 and not an error.

Is it possible to do with formulas r should i write a macro for each cell.

Thanks
Veera
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top