ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Indirect Function (https://www.excelbanter.com/excel-worksheet-functions/167552-indirect-function.html)

DP7

Indirect Function
 
I have an indirect formula that I am trying to get working. See below for
formula.
=INDIRECT(" ' "&$C$16&"!"&ADDRESS(ROW(B2),COLUMN(B2)))
With this formula I want to be able to pick up values from a list which are
names of different tabs in the workbook. When the name is picked it will show
the values which are on each tab. If anyone can figure this out I would be
very grateful. Thanks in advance.


Hans Knudsen[_2_]

Indirect Function
 
DP7 wrote:
I have an indirect formula that I am trying to get working. See below
for formula.
=INDIRECT(" ' "&$C$16&"!"&ADDRESS(ROW(B2),COLUMN(B2)))
With this formula I want to be able to pick up values from a list
which are names of different tabs in the workbook. When the name is
picked it will show the values which are on each tab. If anyone can
figure this out I would be very grateful. Thanks in advance.



Try:
=INDIRECT("'"&$C$16&"'!"&ADDRESS(ROW(B2);COLUMN(B2 )))

Hans



Peo Sjoblom

Indirect Function
 

I am guessing that this is what you want

=INDIRECT("'"&$C$16&"'!"&ADDRESS(ROW(B2),COLUMN(B2 )))


or better


=INDIRECT("'"&$C$16&"'!"&CELL("address",B2))


then copied down it will return what's in B2, B3 and so in the sheet named
in C16

--


Regards,


Peo Sjoblom


"DP7" wrote in message
...
I have an indirect formula that I am trying to get working. See below for
formula.
=INDIRECT(" ' "&$C$16&"!"&ADDRESS(ROW(B2),COLUMN(B2)))
With this formula I want to be able to pick up values from a list which
are
names of different tabs in the workbook. When the name is picked it will
show
the values which are on each tab. If anyone can figure this out I would be
very grateful. Thanks in advance.




Stephen[_2_]

Indirect Function
 
Is the initial "'"& needed?
Why not just
=INDIRECT($C$16&"'!"&ADDRESS(ROW(B2),COLUMN(B2)))
or
=INDIRECT($C$16&"'!"&CELL("address",B2))


"Peo Sjoblom" wrote in message
...

I am guessing that this is what you want

=INDIRECT("'"&$C$16&"'!"&ADDRESS(ROW(B2),COLUMN(B2 )))


or better


=INDIRECT("'"&$C$16&"'!"&CELL("address",B2))


then copied down it will return what's in B2, B3 and so in the sheet named
in C16

--


Regards,


Peo Sjoblom


"DP7" wrote in message
...
I have an indirect formula that I am trying to get working. See below for
formula.
=INDIRECT(" ' "&$C$16&"!"&ADDRESS(ROW(B2),COLUMN(B2)))
With this formula I want to be able to pick up values from a list which
are
names of different tabs in the workbook. When the name is picked it will
show
the values which are on each tab. If anyone can figure this out I would
be
very grateful. Thanks in advance.






Peo Sjoblom

Indirect Function
 
If the sheet name has spaces your formula won't work whereas if the sheet
name does not have spaces it will still work with the appended apostrophe so
yes it is a good design of having those
apostrophes included in all INDIRECT formulas that use sheet names

--


Regards,


Peo Sjoblom


"Stephen" <none wrote in message
...
Is the initial "'"& needed?
Why not just
=INDIRECT($C$16&"'!"&ADDRESS(ROW(B2),COLUMN(B2)))
or
=INDIRECT($C$16&"'!"&CELL("address",B2))


"Peo Sjoblom" wrote in message
...

I am guessing that this is what you want

=INDIRECT("'"&$C$16&"'!"&ADDRESS(ROW(B2),COLUMN(B2 )))


or better


=INDIRECT("'"&$C$16&"'!"&CELL("address",B2))


then copied down it will return what's in B2, B3 and so in the sheet
named in C16

--


Regards,


Peo Sjoblom


"DP7" wrote in message
...
I have an indirect formula that I am trying to get working. See below for
formula.
=INDIRECT(" ' "&$C$16&"!"&ADDRESS(ROW(B2),COLUMN(B2)))
With this formula I want to be able to pick up values from a list which
are
names of different tabs in the workbook. When the name is picked it will
show
the values which are on each tab. If anyone can figure this out I would
be
very grateful. Thanks in advance.








Stephen[_2_]

Indirect Function
 
Thanks for the insight.
Stephen

"Peo Sjoblom" wrote in message
...
If the sheet name has spaces your formula won't work whereas if the sheet
name does not have spaces it will still work with the appended apostrophe
so yes it is a good design of having those
apostrophes included in all INDIRECT formulas that use sheet names

--


Regards,


Peo Sjoblom


"Stephen" <none wrote in message
...
Is the initial "'"& needed?
Why not just
=INDIRECT($C$16&"'!"&ADDRESS(ROW(B2),COLUMN(B2)))
or
=INDIRECT($C$16&"'!"&CELL("address",B2))


"Peo Sjoblom" wrote in message
...

I am guessing that this is what you want

=INDIRECT("'"&$C$16&"'!"&ADDRESS(ROW(B2),COLUMN(B2 )))


or better


=INDIRECT("'"&$C$16&"'!"&CELL("address",B2))


then copied down it will return what's in B2, B3 and so in the sheet
named in C16

--


Regards,


Peo Sjoblom


"DP7" wrote in message
...
I have an indirect formula that I am trying to get working. See below
for
formula.
=INDIRECT(" ' "&$C$16&"!"&ADDRESS(ROW(B2),COLUMN(B2)))
With this formula I want to be able to pick up values from a list which
are
names of different tabs in the workbook. When the name is picked it
will show
the values which are on each tab. If anyone can figure this out I would
be
very grateful. Thanks in advance.











All times are GMT +1. The time now is 12:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com