Insert text in a formula

P

petbi

I have an excel-file with a lot of sheets named ADB, AS, BM etc.

In the first sheet I'm collecting data from the sheets above.
In this sheet the first collumn contains the names of the sheets in the
file.
In the next collumn I'm going to show data from the other sheets. For
instance I use the command =ADB!A5.

Is it possible to get the 'ADB' from the first collumn, so I can copy the
formula?????

I'm thinking of something like this:

=A2!A5 (where A2 contains the text 'ADB').

T
 
T

T. Valko

Are you wanting to use the same cell from each sheet?

Try this:

A2 = ADB

=INDIRECT("'"&A2&"'!A5")

Biff
 
G

Guest

Use the INDIRECT function:

=INDIRECT(A1&"!A5")

If any of your sheet names contain spaces, you'll need to add single quotes,
like this:

=INDIRECT("'"&A1&"'!A5")

Shown here with additional spaces for clarification (do not include these
spaces): " ' " & A1 & " ' !

HTH,
Elkar
 

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

Top