How To Reference Other Sheet Names In Workbook But Keep Cell References The Same

Oct 7, 2013

Within one workbook I have 15 sheets, 13 are for separate divisions within the company, 2 are used to present sums across the 13 sheets. All 13 sheets have identical columns and rows, with unique numbers in each cell. Right now I am manually selecting the cells to reference in my master sheet, =sheet name!cell+sheetname!cell+sheetname!cell - so and and so on. How can I reference the sheet name once, and then all of the cells to SUM? =sheetname!(c4+c14+c24+c34) etc?

This would let me be able to copy the formula from cell to cell, and only have to change the sheet name each time.

View 3 Replies


ADVERTISEMENT

Reference Workbook And Sheet From A Cell Using VBA

Aug 19, 2009

Is it possible for the VBA code to capture the open workbook name and sheet name from a cell?

I've been trying to tweak this ...

View 6 Replies View Related

List Sheet Names And Internal Names Within Workbook

Feb 25, 2011

Is it possible to produce a list on a new worksheet of all sheet names and their their internal names within a workbook?

If so I would like the tabbed name's to begin in say A2 with the corresponding internal name in B2.

View 3 Replies View Related

Cell Range References (Labels / Names)

Aug 6, 2013

I inherited a Profit & Loss (P&L) template from a colleague. She developed it on Excel 2013 and I'm on Excel 2010, but it's not clear that is the issue here (tho, never say never).

The spreadsheet was set up for quarters and I've expanded it (by copy and paste) to 12 months. It has the typical tables: sales revenues, cost of goods, admin exp, etc. Each table has a number (varies from table to table) of rows with a subtotal in the bottom row of each table. There is also a label row above all the tables (this now has the month labels).

The problem: The subtotal (bottom) row of a table uses the formula "=SUBTOTAL (109, ref1)". In the original spreadsheet, ref1= "QTR1" (or QTR2, QTR3, etc.). I'd like to change that to be MONTH1, MONTH2.... However, when I enter MONTH1 or MONTH2, etc. for ref1, I get a formula error. Which I suspect is expected.

What I noticed is that if I highlight ref1 in the subtotal cell formula and then select the cells I want included in the subtotal, the first selected cell shows a "B8". With 2 cells, it shows "B8:B9". Good so far. However, when I get to the last cell before the subtotal row, ref1 changes to "[QTR1]", so the final subtotal formula shows "=SUBTOTAL (109, [QTR1])".

I've tried to change QTR1 to MONTH1, but get an error. I used Name Manager, but QTR1 doesn't show up on the list (However, the tables are named and seem to reference the columns correctly). If I do a "Define Name", the window pops up w/the name entry empty and the "Refers To" containing "=tblName[QTR1]" (tblName is the name given to the specific table (revenue, cost of goods, etc.) and does show up under Name Manager).

I tried an experiment and in the revenue table I deleted (move left) the cells (up to but not including the subtotal cell) under MONTH1, and then inserted (move right) a new set of cells. Now the "Refers To" shows "=tblSalesRevenue[Column7]".

So, apparently, Excel can assign some kind of label to a set of cells. My question is, how do I (if I can) change that label, or name, so that the column of cells I want to use for my subtotal formula will work (MONTH1, MONTH2, etc.). It's not clear that Define Name or Name Manager is what I should use. I looked at the original spreadsheet and there are no Name Manager listings for QTR1, QTR2, etc.

Additional Note: I forgot to mention that this isn't a show stopper, just a nuisance. If I use normal cell references (i.e. B8:B11, etc.) the spreadsheet works fine and as expected. This is just one of those "nits" that I'd like to understand so that I can make the spreadsheet programming more "readable".

View 4 Replies View Related

Hyperlink Won't Keep Reference When Sheet Names Change?

Apr 30, 2014

VB:
Sub RenameTabs()
For i = 1 To Sheets.Count
If Worksheets(i).Range("C1").Value <> "" Then
Sheets(i).Name = Worksheets(i).Range("C1").Value
End If
Next
End Sub

I change my tab names with the above but than my hyperlinks breaks.

View 4 Replies View Related

Reference Sheets With Variable Sheet Names

Dec 4, 2007

I have a workbook with multiple sheets. There is an overview sheet and then 14 sheets allowing for 14 days worth of schedule information. There are then 3 sheets following the 14 days to total some information. The workbook users frequently change the sheet names of the 14 sheets to reflect days of the week.

I'm creating a copy for distribution that takes the active workbook and copies the values to a new workbook. There are columns that I would like to delete from the 14 day sheets and that would be easy enough if the sheet names were never changed.

The code I'm using currently follows (my thanks to Turtle 44 for helping on that section)

Sub Copy_Visible_Sheets()
Dim arr() As String
Dim i As Integer
Dim WB As Workbook
Dim WS As Worksheet
Set WB = ActiveWorkbook
Application. ScreenUpdating = False

'Make sure template is saved as .xls
If Not ThisWorkbook.Saved Then
MsgBox "Please save this workbook before generating a Client Copy."
Else

View 6 Replies View Related

Reference Sheet Names With Indirect Function To Make Formula?

May 21, 2014

Attached I have a document where I am wanting all of the individual sheet names on the Total page. Rather than having to change each formula to match the sheet name I believe there is a way to reference the sheet name column (AO) in the formula so you can drag it down to fill in the columns. I am basic with Excel and do not know how to add this indirect function into my current formulas.

View 5 Replies View Related

Circular Reference: Cell References In The Formula Refer To The Formula's Result, Creating A Circular Reference

Aug 14, 2006

I have the following formula in cell L51 of all sheets calculating the volume depending on the monthly index that is chosen from the drop down menu in a particular sheet. =If(MIndex=0, SUM(D33:L50),If(MIndex=1,SUM(D34:L50),If(MIndex=2,SUM(D35:L50), 0))). I am getting the following message and I do not understand what it is about.

Microsoft Office Excel cannot calculate a formula. Cell references in the formula refer to the formula's result, creating a circular reference. Try one of the following

View 3 Replies View Related

Formula That References A Cell Where Workbook Is A Variable

May 24, 2007

Say cell C5 contains the name of a project (workbook). eg

C5 = "[Project1]"

In my current workbook, I want to find the value in cell B8 of Sheet1 of the project shown in C5. If I wrote this directly, it would be "='[Project]Sheet1'!B8"
But the name of the project is a variable shown in cell C5 (as explained above). So I need a formula that will find the value in cell B8 of sheet1 of the project shown in C5.

View 7 Replies View Related

Index Workbook - Return Sheet Names

Dec 19, 2012

I have a workbook with a menu and 122 sheets holding detail for unique item (product model).

On the menu there is an index of the sheet names which was hand typed. However, the sheet names change as models evolve/get replaced.

I've written a small macro to put the sheet name in cell J1 of each sheet.

[Code] ......

On my menu page i was hoping to do something like this:

A B
Index NAME
2 =sheet[A2].$J$1
3 =sheet[A3].$J$1

That way i could just drag this down and my index list would complete itself and would dynamically update as sheet names change....

View 5 Replies View Related

Listing Sheet Names Contained Within Workbook?

Mar 22, 2014

I have created a file that has several worksheets with different naming convention - to specify what the sheets are for. However, as the sheets are added, I sometimes find it difficult to keep track of all the sheets that I have in the workbook.

Is there a Macro Code or formula that I can use so that a Summary worksheet can summarize all the names of the worksheets that I have in the particular workbook.

View 5 Replies View Related

Code To List Out Complete Sheet Names In Workbook

Feb 20, 2013

I'm about get code for list out the sheet names in current workbook, list would be displayed in a new sheet at the end.

View 3 Replies View Related

Adding Invalid Characters To Cell Reference Names?

Jun 18, 2013

I am currently using cell references to create a depedendent list with data validation. How to make cell references show up with some invalid characters?

For example, one of my cell references is Youngs_Market_Company. However, when pulling up the cell, I want it to be displayed as Young's Market Company.

View 2 Replies View Related

Excel 2013 :: Not Loading Listbox With Sheet Names From Another Workbook

Feb 27, 2014

I've created a macro that loads a listbox with the sheet names from another workbook. It works fine with Excel 2007-2010 but some reason fails with 2013. It doesn't crash, it just doesn't add items to the listbox nor doest it add the caption to Userform1.Caption. It does launch the form. Here is the code snippet:

Code:
'open read-only
wbkpath = Sheet3.Cells(1, "f") 'full pathway to source workbook
Workbooks.Open Filename:=wbkpath, ReadOnly:=True
Set swbk = ActiveWorkbook
swbk.Activate

[Code] ...........

View 2 Replies View Related

Reference To Name Range As Array From Another Sheet / Workbook

Jan 28, 2013

I have the below formula

=IFERROR(INDEX(Settlements!Account_No.,AGGREGATE(15,6,(ROW(Settlements!Account_No.))/(Settlements!Settlement_Date=TODAY()+1),ROWS(N$2:N2))),"")

I would like to copy it across and use different named ranges for the red part, hence have it reference to a cell with the name of the range.

i.e. (which doesn't work)

=IFERROR(INDEX(Indirect("Settlements!"&N1),AGGREGATE(15,6,(ROW(Settlements!Account_No.))/(Settlements!Settlement_Date=TODAY()+1),ROWS(N$2:N2))),"")

View 9 Replies View Related

Displaying Sheet Name Before All Cell References In Formula

Oct 11, 2013

Any way to always include the sheet name before the cell address in a formula? For example, in my "Summary" sheet, I have a formula:

Code:
=A2 + B4/B5

However, without typing anything else, I'd like the formula to populate the sheet name since I will be extracting the formula as text and need the full reference:

Code:
=Summary!A2 + Summary!B4/Summary!B5

A way to get around this is to enter the equal sign, then temporarily select another sheet, then go back to the "Summary" sheet where all cell references will include the sheet name, but if there is a quicker way to do it using some kind of property or event in VBA, that would be ideal.

View 1 Replies View Related

Using Relative References In Range Names

Jun 5, 2009

I have a workbook with a single worksheet. The worksheet includes some named ranges, which are used in a dynamic chart (so that when I add data, the chart updates).

I want to duplicate worksheet#1 so that I can have worksheets 2, 3, 4 etc.

Thus I can paste new data in the new worksheets, and have all my calculations done.

Naturally, the only probelm is the graph. It is using the named ranges from worksheet #1.

Is there a solution, so that I don't have to re-create my graphs on each worksheet? (each worksheet has varying numbers of rows, AND, I will be updating each worksheet with new data from time to time, thus the need for a dynamic chart)

View 4 Replies View Related

Pasting Data From One Sheet To Another With Formatting And Cell References

Feb 11, 2010

I have inherited a monstrous speadsheet on which all data appears on a single sheet rather than being broken up across several sheets in some logical fashion.

One portion of this monster is a set of quite a few form letters, each of which reference various cells elsewhere in the spreadsheet.

I want to move all of these letters, together, to another tabbed sheet as a first step in reorganizing the monster.

Simply copying and pasting the cells or columns doesn't work. It fails in different ways depending on which pasting options I employ.

A very simplified version of my problem appears on the 5 sheets of the attached file, with what I hope is just enough further detail about the difficulty.

By the way, I also tried using the "Insert Copied Cells" option when pasting but since this failed with the exact same results as one of the other options I didn't include the results in the example shreadsheet.

View 5 Replies View Related

Absolute External References When Defining Names

Nov 29, 2006

I would like a defined name (1) in my excel document (A) to refer to another defined location (2) in an external document (B), which is a master document that will not move or be renamed. The main document (A) is one which will be copied to numerous locations within our company's network.

Therefore, I need the defined name (1) to have an absolute reference to the external document (B). At the moment I'm only able to get a relative reference, since Excel 'simplifies' the reference when both files are opened. Here is what I'm currently using: ='J:Invoice TemplateOffice list01 231106 List of offices.xls'!SiteNames

View 3 Replies View Related

Copy Relative References Whilst Using Range Names

Jul 20, 2006

eg say you call (ie insert a range name) cell A1 "firstcell", B1 "secondcell", then A2 "divisor1" and B2 "divisor2". if you put a formula in A3 which is "=A1/A2", how do you copy and paste this formula into B3 but getting the formula to reference B1/B2 rather than firstcell/divisor1, as it does by default?

View 2 Replies View Related

Copying Sheet Names And Cell Data Into New Overview Sheet

Mar 21, 2013

I have workbook that has several sheets within the workbook that are set up identical. Each of the sheets in the workbook are for a specific company.

As of right now I have been adding a sheet to the workbook that is an overview for what is in each sheet (the individual companies). Currently I am doing the formatting of the heading and column names manually and I pull the data from each sheet with a VLookup. I have been trying to enhance my VBA skills with coding something that will fill in the appropriate cells from worksheet to worksheet.

What I am trying to do is to populate an overview sheet with cells C24, C25, and B36 being static on each row per sheet. Then each row will be populated with cells C(36, 59, 70, 81), D(36, 59, 70, 81), F(36, 59, 70, 81), G, and H(36, 59, 70, 81). The overview sheet will have the diagram below in a ru

I attached an example : example.xlsx

Sheet 1
C25
C24
B36
D36
C36
F36
G36
H36
I36

[Code] .....

View 1 Replies View Related

Structured References And With Cell References I Get A Column Of Zeros

Nov 25, 2007

It is suppose to be that if the employee is "FT" and has worked >=4 years the return is 15. But if the employee is FT and has worked 2 years but less than 4 years then it is suppose to return 10 (these are days off) Or if the employee is FT and has worked 1 year, but less than 2 then it should return 5 days off. And all the others in the column get no days off.

I have tried to do it with structured references and with cell references I get a column of zeros!

View 9 Replies View Related

Open Workbook 2 From Hyperlink In Workbook 1 Breaks References?

Sep 17, 2012

I have set up a workbook (wb2) that has external references to another workbook (wb1). All is good and works fine when you open the 2 files from windows explorer. I have then put a hyperlink to wb2 from wb1. When you click on this link the file opens but throws up errors saying some of the named ranges cannot be found?

View 3 Replies View Related

Reference Sheet (return The Value Of Cell B2 On Whichever Sheet The Text Of A1 Says)

Nov 1, 2009

If I have a cell that has as its contents as sheet name, is there anyway I can use the cell's address to reference that sheet?

As an example, say I have in Sheet1, cell A1, the text Sheet2. And let's say I want to return the value of cell B2 on whichever sheet the text of A1 says. So, on Sheet1, I might have this:

View 2 Replies View Related

Returning Cell Value From Sheet 1 Based On Cell Reference From Sheet 2

Oct 29, 2013

In Sheet2 I have a list of cell addresses showing values such as D5, D32, D59, D221, D869 stored in cells AB7:AB16. In Sheet1 the "D" column holds dates. I want to return the corresponding date for each D# cell into Sheet2 in column AC7:AC16. I'm unaware of the proper syntax for this. I though it would look something like:

='Sheet1'!('Sheet2'!(AB7))

however that doesn't work.

View 2 Replies View Related

Reference To Cell In Another Workbook

Jul 18, 2014

I have a work book, it copies a cell reference from a work sheet in workbook2 to workbook1

It then selects next work sheet in each page and then triggers the code again.

My problem is i want the following piece of code to work.....what should i put in where it says "activeworksheet"

[Code] ......

View 7 Replies View Related

Cell Reference For Workbook Name

Aug 7, 2009

I am trying to write a formula that will pick the data out of a closed workbook.

Indirect works but it doesnt help because the workbook needs to be open and there are literaly hundreds of workbooks to sort thru.

Is there a way other than find and replace to have a formula pull data from a specific cell in another workbook, based on say cell A1 or A110?

View 9 Replies View Related

Dragging Down Reference To Another Workbook Cell

Jan 23, 2014

I have a master workbook that I reference data from hundreds of excels on.

I am trying to reference the cell "BU7" that has the workbook name (NT-13-001) in it, to reference sheet name "Purchase Order" at cell "H13".

Next line I would like to reference the cell "BU8" that has the workbook name (NT-13-002) in it, to reference sheet name "Purchase Order" at cell "H13".

The computer path is K:FRG TOOL REQ2013NT FormsNT-13-001

This is the formula I have tried... I have also attempted the INDIRECT function & Hyperlink GO TO.

=IFERROR('K:FRG TOOL REQ2013NT Forms["&DU7&".xlsx]Purchase Order'!$H$13,"")

View 1 Replies View Related

Formula With Cell To Reference Other Workbook?

Mar 19, 2014

So finally got my sumrpod working using this formula

=SUMPRODUCT(1*('Q:Documents13-14 FCGP CONTRACTING13-14 TrackingSouthPac - Team Use Only[South Pac Load Tracker - MAR14.xlsm]SPECIALS TEAM NZ'!$C8:$C10000=A5))

Is there a way i can link 'Q:Documents13-14 FCGP CONTRACTING13-14 TrackingSouthPac - Team Use Only[South Pac Load Tracker - MAR14.xlsm] to a cell so that when the next months tracker is created and the filename changes i simply change the filename in the cell which im using to reference the filepath/filename.

e.g A1 = South Pac Load Tracker - MAR14.xlsm

Formula would read =SUMPRODUCT(1*('Q:Documents13-14 FCGP CONTRACTING13-14 TrackingSouthPac - Team Use Only[' & a1 & ;]SPECIALS TEAM NZ'!$C8:$C10000=A5))

View 1 Replies View Related

VBA To Activate Workbook With Reference To Name In Cell

Jul 9, 2012

i need a VBA code to activate workbook (which is already opened) with reference to name in cell A1

in Cell A1 is "masterworksheet.xls"

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved