ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Should be able to name Excel sheets based on cells in workbook (https://www.excelbanter.com/excel-discussion-misc-queries/4453-should-able-name-excel-sheets-based-cells-workbook.html)

callsign Blue Wolf One Five

Should be able to name Excel sheets based on cells in workbook
 
Using Excel 2003 from the student/teacher office version. I am trying to
make a workbook to track flight hours for all of the pilots in our unit. I
want to be able to tell a sheet to get its name from the text in a cell in
another sheet in the workbook. I have the last sheet as the "tracking
sheet," which has all of the pilots and their hours and ect. What I want to
do is automatically name the first sheet by refering it to the cell in the
"tracking sheet" that has the first pilots' last name. The the second sheet
would get named from the cell with the second pilots' name, and on and on.
Thanks.

Bill Martin -- (Remove NOSPAM from address)

callsign Blue Wolf One Five wrote:
Using Excel 2003 from the student/teacher office version. I am trying to
make a workbook to track flight hours for all of the pilots in our unit. I
want to be able to tell a sheet to get its name from the text in a cell in
another sheet in the workbook. I have the last sheet as the "tracking
sheet," which has all of the pilots and their hours and ect. What I want to
do is automatically name the first sheet by refering it to the cell in the
"tracking sheet" that has the first pilots' last name. The the second sheet
would get named from the cell with the second pilots' name, and on and on.
Thanks.


----------------

For example, if you have a last name in Sheet1 cell A1, then you can
access cell B5 on the sheet named in A1 by:

= INDIRECT((Sheet1!A1&"!$B$5"),TRUE))

This takes the name from A1, and concatenates it with the desired cell
from that page to form a good cell address, and then gets the contents.

Play with it a little and you'll see how it works.

(I hope you don't have two people named SMITH!)

Good luck...

Bill

callsign Blue Wolf One Five

Thanks for the info Bill.

"Bill Martin -- (Remove NOSPAM from addre" wrote:

callsign Blue Wolf One Five wrote:
Using Excel 2003 from the student/teacher office version. I am trying to
make a workbook to track flight hours for all of the pilots in our unit. I
want to be able to tell a sheet to get its name from the text in a cell in
another sheet in the workbook. I have the last sheet as the "tracking
sheet," which has all of the pilots and their hours and ect. What I want to
do is automatically name the first sheet by refering it to the cell in the
"tracking sheet" that has the first pilots' last name. The the second sheet
would get named from the cell with the second pilots' name, and on and on.
Thanks.


----------------

For example, if you have a last name in Sheet1 cell A1, then you can
access cell B5 on the sheet named in A1 by:

= INDIRECT((Sheet1!A1&"!$B$5"),TRUE))

This takes the name from A1, and concatenates it with the desired cell
from that page to form a good cell address, and then gets the contents.

Play with it a little and you'll see how it works.

(I hope you don't have two people named SMITH!)

Good luck...

Bill



All times are GMT +1. The time now is 04:57 PM.

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