Autofilling a formula: not working?

  • Thread starter Thread starter pikapika13
  • Start date Start date
P

pikapika13

I currently have the following formula:
=INDIRECT($A$1&".xls!A1").
I need to drag and increment the formula but it won't work.
Desired results:

INDIRECT($A$1&".xls!A2")
INDIRECT($A$1&".xls!A3")
etc.

Thanks in advance for your help
 
Hi

Try this:
=INDIRECT($A$1&".xls!A"&ROW()-2)
where the row number minus 2 is the number you want. The example above would
look at the row number the formula is on and subtract 2 from it.
This will then increment when you fill down (as the row number increments).

Andy.
 
Thanks for the quick reply. It works. Now how do I have it for the
columns? the "column" function gives me a number. I would need a
letter.
 
Hi

Thanks for the feedback. If you use COLUMN() it will return the column
number - just the same as ROW() does for rows!

Andy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top