#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 52
Default Deleting a row

I have the following formula as an example on a sheet called Summary....

=IF(ISBLANK(LocationOne!L18),"",LocationOne!L18)

The formula is copied down a range of rows from L6 to L75.

When I delete row 18 on the LocationOne sheet, it creates a row where the
#REF! is displayed. the formula in the cell above indicates L18, and the
formula in the cell below indicates L19....What is causing this extra row,
and how can I prevent it?

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Deleting a row

Deleting cells that are referenced in a formula causes that reference to
become invalid. When the cells are shifted up the other formulas self adjust.
The only thing you can do is to delete the formula (or the entire row) where
the reference is no longer valid. Generally speaking you do not want to
delete cells that are refenced in other formulas as you end up having to
remove all of the invalid references that it leaves behind.
--
HTH...

Jim Thomlinson


"carrera" wrote:

I have the following formula as an example on a sheet called Summary....

=IF(ISBLANK(LocationOne!L18),"",LocationOne!L18)

The formula is copied down a range of rows from L6 to L75.

When I delete row 18 on the LocationOne sheet, it creates a row where the
#REF! is displayed. the formula in the cell above indicates L18, and the
formula in the cell below indicates L19....What is causing this extra row,
and how can I prevent it?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 52
Default Deleting a row

Well poo.

How about a macro that would automatically delete whatever row is now invalid?

How would I state that no matter which row is now #REF!, to delete it?

Thanks Jim, you're very helpful.



"Jim Thomlinson" wrote:

Deleting cells that are referenced in a formula causes that reference to
become invalid. When the cells are shifted up the other formulas self adjust.
The only thing you can do is to delete the formula (or the entire row) where
the reference is no longer valid. Generally speaking you do not want to
delete cells that are refenced in other formulas as you end up having to
remove all of the invalid references that it leaves behind.
--
HTH...

Jim Thomlinson


"carrera" wrote:

I have the following formula as an example on a sheet called Summary....

=IF(ISBLANK(LocationOne!L18),"",LocationOne!L18)

The formula is copied down a range of rows from L6 to L75.

When I delete row 18 on the LocationOne sheet, it creates a row where the
#REF! is displayed. the formula in the cell above indicates L18, and the
formula in the cell below indicates L19....What is causing this extra row,
and how can I prevent it?

Thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting cell data without deleting formula Tom Hall Excel Discussion (Misc queries) 4 October 29th 06 04:07 PM
Deleting a row Chuck Neal Excel Discussion (Misc queries) 7 March 30th 06 10:17 PM
deleting values in a worksheet without deleting the formulas patti Excel Worksheet Functions 1 October 28th 05 09:49 PM
how prevent formula in cell from deleting when deleting value???? sh-boom New Users to Excel 1 September 30th 05 06:12 PM
deleting 4's(four) PCOR Excel Worksheet Functions 0 February 15th 05 01:17 AM


All times are GMT +1. The time now is 11:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"