Autofill with multiple filenames

S

someoneelse

Hi

I've attached a sample spreadsheet with my problem included...

I need to fill a formula down hundreds of rows. Each cell refers to
different filename, and I don’t know how to increase the value of th
filename with one value each time without physically changing eac
value… Please help

Attachment filename: help1.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=68377
 
A

Arvi Laanemets

Hi

When you need a reference to 'C:\My Documents\[MyFile1.xls]Sheet1'!A1 in
cell A2, reference to 'C:\My Documents\[MyFile2.xls]Sheet1'!A1 in cell A3
etc, then:
1. Into A2 enter the formula
="_='C:\My Documents\[MyFile" & ROW()-1 & ".xls]Sheet1'!A1"
Copy the formla down for as much rows as you have files.
Copy the range with formulas, and PasteSpecial values (be sure cell formats
are general)
Activate Replace window, enter _ into search field, and press ReplaceAll.

It's done
 
S

someoneelse

Thanks for your help, but I'm not getting it right. Could you use my th
values in attached help1.xls in your example? it gives me a REF erro
when doing the first step
 
A

Arvi Laanemets

Hi

Sorry, but I never visite ExcelForum. Better try in plain text here. A
couple of examples of manually entered working links, and an explanation
about file naming rules, will do.

You get an #REF error on first step? You have something entered wrong
there - on first step only 2 strings and a number are concantenated. Try it
step-by step:
C2="_='C:\My Documents\[MyFile"
it returns a string (_='C:\My Documents\[MyFile)
D2=ROW()-1
it returns number (1)
E2=".xls]Sheet1'!A1"
it returns a string (.xls]Sheet1'!A1)

Then into A2 enter
=C2 & D2 & E2
and after that replace cell references with according formulas.
 

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

Similar Threads

multiple criteria 1
Conditional Autofill 1
Mutiple AutoFill 4
Autofill Until 1
Almost worked - :( 1
macro to calculate percentage 1
Strange Excel total error 7
Help with Excel formulas - example attached 1

Top