Using the =Sheet1! Formula Without Getting the #REF!

GWee

New Member
Joined
Nov 8, 2005
Messages
24
Sheet2,A2 has a formula =Sheet1!A2
Sheet2,A3 has a formula =Sheet1!A3
Sheet2,A4 has a formula =Sheet1!A4
AND SO FORTH.....

When I delete a row like: Sheet1!A2 a #REF! comes up in Sheet2!A2

What can I add to the formula (=Sheet1!A2) to eliminate the #REF! and have those rows come together in Sheet2 to keep the report clean and keep the formulas in order with each other?

Thanks for your reply!! :eek:
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
How about using

=IF(ISERROR(Sheet2!A1)=TRUE,"",+Sheet2!A1)

when you delete a row in sheet2,
the result should be a blank line in sheet1 as opposed to the #ref!

then use the filter function to tidy the report up ?
 
Upvote 0
Thanks for trying...but these don't work!

Still giving out #value errors and other problems

Thanks for trying! :cry:
 
Upvote 0
Re: Thanks for trying...but these don't work!

GWee said:
Still giving out #value errors and other problems

Thanks for trying! :cry:

The formula I posted won't return a #REF! error. But it might return an error if the referenced cell contains an error.
 
Upvote 0
Andrew, It does work but one problem!!

When you want to copy the formula down 800 rows by using the cross bars and dragging it, it won't add the next number up for the row number. It seems the parenthesis keep it from adding up.

Is there a way to do this for 800 rows? :eek:
 
Upvote 0
Make sure Calculation is set to Automatic. Otherwise press F9 to calculate after you drag the formula down.
 
Upvote 0
Andrew Poulsom said:
Make sure Calculation is set to Automatic. Otherwise press F9 to calculate after you drag the formula down.
Still does not work!
It just copies the cell exactly without calculations..

It works for other formulas without the parenthesis!?? :eek: :cry:
 
Upvote 0
What exactly do you mean by it doesn't do calculations, it should work, and the formula should look exactly the same in every cell because it references the row via ROW() within the INDEX function

but you might want to do this:

Code:
=IF(INDEX(Sheet1!A:A,ROW())="","",INDEX(Sheet1!A:A,ROW()))
 
Upvote 0

Forum statistics

Threads
1,215,875
Messages
6,127,477
Members
449,385
Latest member
KMGLarson

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top