ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Copy a cell from a diferent tab when the tab name is in a cell (https://www.excelbanter.com/excel-discussion-misc-queries/260127-copy-cell-diferent-tab-when-tab-name-cell.html)

ann

Copy a cell from a diferent tab when the tab name is in a cell
 
I have the name of a tab within a cell. How do I use this cell to look up
data on the tab.

Tab 1 has the following entry:-
Road 1

I wish to use this entry to go to the Road 1 tab and look up data held in
cell M6

Road 1 could then be updated to Road 2 and I then wish it to go to the Road
2 tab and display information from the same cell i.e. cell M6

Thank you

ozgrid.com

Copy a cell from a diferent tab when the tab name is in a cell
 
Try =INDIRECT("'"&A1&"'!M6")

Where A1 has the sheet tab name.


--
Regards
Dave Hawley
www.ozgrid.com
"Ann" wrote in message
...
I have the name of a tab within a cell. How do I use this cell to look up
data on the tab.

Tab 1 has the following entry:-
Road 1

I wish to use this entry to go to the Road 1 tab and look up data held in
cell M6

Road 1 could then be updated to Road 2 and I then wish it to go to the
Road
2 tab and display information from the same cell i.e. cell M6

Thank you



RonaldoOneNil

Copy a cell from a diferent tab when the tab name is in a cell
 
If your tab name is in A1 then use

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

"Ann" wrote:

I have the name of a tab within a cell. How do I use this cell to look up
data on the tab.

Tab 1 has the following entry:-
Road 1

I wish to use this entry to go to the Road 1 tab and look up data held in
cell M6

Road 1 could then be updated to Road 2 and I then wish it to go to the Road
2 tab and display information from the same cell i.e. cell M6

Thank you



All times are GMT +1. The time now is 09:23 PM.

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