Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 334
Default #Ref! after row deletion

How can one stop the #Ref! from appearing after deleting row from above? Exam:
Col A = Date field
Col B = Data field
Col C = Reference from Col B, formula = if(A2="",C1,B2) Etc. to row 10.
Row C11 contains formula =C10

delete rows 3,4,5 leaves row 11, now row 8 with #Ref!

What kind of formula can stop the #Ref!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default #Ref! after row deletion

One option is to use Indirect to refer to the previous row, as in:
=Indirect("A"&row()-1)

Regards,
Fred

"Rick" wrote in message
...
How can one stop the #Ref! from appearing after deleting row from above?
Exam:
Col A = Date field
Col B = Data field
Col C = Reference from Col B, formula = if(A2="",C1,B2) Etc. to row 10.
Row C11 contains formula =C10

delete rows 3,4,5 leaves row 11, now row 8 with #Ref!

What kind of formula can stop the #Ref!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 334
Default #Ref! after row deletion

Thanks Fred it works well except for date fields. What is returned is
1901/01/00.....
I use to use If(A10="","",A9)

"Fred Smith" wrote:

One option is to use Indirect to refer to the previous row, as in:
=Indirect("A"&row()-1)

Regards,
Fred

"Rick" wrote in message
...
How can one stop the #Ref! from appearing after deleting row from above?
Exam:
Col A = Date field
Col B = Data field
Col C = Reference from Col B, formula = if(A2="",C1,B2) Etc. to row 10.
Row C11 contains formula =C10

delete rows 3,4,5 leaves row 11, now row 8 with #Ref!

What kind of formula can stop the #Ref!


.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default #Ref! after row deletion

A date field cannot return 1901/01/00. If the number 0 is formatted as a
date, then you will see 1900/01/00. If you want blank instead, you will have
to modify your formula in the same way, as in:

=if(indirect("A"&row()-1)="","",indirect("A"&row()-2))

Regards,
Fred






"Rick" wrote in message
...
Thanks Fred it works well except for date fields. What is returned is
1901/01/00.....
I use to use If(A10="","",A9)

"Fred Smith" wrote:

One option is to use Indirect to refer to the previous row, as in:
=Indirect("A"&row()-1)

Regards,
Fred

"Rick" wrote in message
...
How can one stop the #Ref! from appearing after deleting row from
above?
Exam:
Col A = Date field
Col B = Data field
Col C = Reference from Col B, formula = if(A2="",C1,B2) Etc. to row
10.
Row C11 contains formula =C10

delete rows 3,4,5 leaves row 11, now row 8 with #Ref!

What kind of formula can stop the #Ref!


.


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
name deletion rk0909 Excel Discussion (Misc queries) 2 January 5th 08 12:03 AM
simple row deletion lawson Excel Discussion (Misc queries) 3 October 17th 07 06:57 PM
Accidental Deletion Brian Frantz Setting up and Configuration of Excel 2 August 25th 06 08:51 AM
On deletion of rows Stephen Howe Excel Discussion (Misc queries) 2 October 7th 05 06:02 PM
#REF! after cell deletion Colin G Eastwood Excel Discussion (Misc queries) 1 December 2nd 04 02:22 PM


All times are GMT +1. The time now is 03:15 PM.

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

About Us

"It's about Microsoft Excel"