Autofill Absolute References without VBA?

yevlar

New Member
Joined
Apr 23, 2005
Messages
41
Is there a way to autofill a sereis of Absolute references without using VBA/Macros? My specific problem is I have two worksheets in a workbook. The Column A of Sheet 1 is a list that refers to values in Column A of Sheet 2. However, Sheet 2 must have empty rows deleted without throwing a REF error into Sheet1.

So, the way I have it now is in Sheet1 A1: =IF(Sheet2!$A$1="","",Sheet2!$A$1), which works for cell A1. However, I need A2 to be =IF(Sheet2!$A$2="","",Sheet2!$A$2) and so-on down Column A several hundred times. Is there a way to autofill this formula all the way down Sheet 1 Column A WITHOUT using VBA? (I cannot use VBA because the IT department demands that macros be disabled on ALL machines.)
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi,

relative or absolute references or BOTH gettin REF when deleting rows
perhaps you mean that the cells must always point to the same rows, regardless what happens on the other sheet

try a formula using
=INDIRECT("sheet2!A" & ROW())

kind regards,
Erik
 
Upvote 0
rereading this ..
when you change sheetname, you'll get into trouble

using this would then be a better solution :)
  A      
1 sheet2 
2 itemA2 
3 itemA3 
4 itemA4 

sheet1

[Table-It] version 06 by Erik Van Geit
Code:
RANGE FORMULA (1st cell)
A1    =RIGHT(CELL("filename",sheet2!A2),LEN(CELL("filename",sheet2!A2))-FIND("]",CELL("filename",sheet2!A2)))
A2:A4 =INDIRECT("'" & $A$1&"'!A"&ROW())

[Table-It] version 06 by Erik Van Geit
 
Upvote 0

Forum statistics

Threads
1,216,481
Messages
6,130,921
Members
449,606
Latest member
jaybar0812

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