Using Tab value in formula

ridgetown_rick

Board Regular
Joined
Aug 28, 2002
Messages
193
I must not be using the right keywords because I haven't been able to find anything on how to insert the value on the tab into a cell by using a formula. Can it be done, or do I need to write a macro to do it?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
The file must first be saved for this to work

<code>=RIGHT(CELL("filename",A1),LEN(CELL("filename",A1))-FIND("]",CELL("filename",A1)))</code>
 
Upvote 0
Thanks Peter, but unless I'm reading it wrong, that isn't what I need. I guess I was not clear. What I want to do is insert whatever is on the tab (e.g. sheet1) into a specific cell by using a formula. Ideally it would be something as simple as =tab but obviously that doesn't work, so what might?
 
Upvote 0
Yes, LIKE that, but not exactly.

What I am creating is a workbook with about 30 worksheets, each with the workload calculations for a different person. I am creating this by using ASAP utilities, a list of the employees on one sheet, and a template of the workload calculations on another.

Using this tool the name of the employee is placed on the tab of each sheet, but I also want it in cell A3 (where I now manually type it). I thought the easiest way would have been to just insert a formula in A3 that would grab the value on the tab, then as each worksheet was created the names of the employees would be automatically inserted.

Is this any clearer?
 
Upvote 0
I think so. In A3 of each tab enter the first formula that I posted. So if the tab name is Dave A3 should then display Dave.
 
Upvote 0
Yes, LIKE that, but not exactly.

What I am creating is a workbook with about 30 worksheets, each with the workload calculations for a different person. I am creating this by using ASAP utilities, a list of the employees on one sheet, and a template of the workload calculations on another.

Using this tool the name of the employee is placed on the tab of each sheet, but I also want it in cell A3 (where I now manually type it). I thought the easiest way would have been to just insert a formula in A3 that would grab the value on the tab, then as each worksheet was created the names of the employees would be automatically inserted.

Is this any clearer?

If by that bolded statement you mean
"Put the NAME of the Sheet into A3"

Then put Vog's formula in A3
=RIGHT(CELL("filename",A1),LEN(CELL("filename",A1))-FIND("]",CELL("filename",A1)))

IMPORTANT
AS Vog Noted, the File MUST be saved for this formula to work.
It will not work on a NEW book until it is saved.
 
Upvote 0
Thanks. I got it to work. I was getting #VALUE in the cell till I double clicked to adjust the cell width, then it worked.

Sorry for the confusion. I'm a happy camper again.
 
Upvote 0

Forum statistics

Threads
1,224,588
Messages
6,179,743
Members
452,940
Latest member
rootytrip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top