Solved

Text of a cell reference

Posted on 2013-11-08
8
254 Views
Last Modified: 2013-11-14
I want the reader of my SpreadSheet know the exact cell and worksheet that I'm referencing.  I need it written out in text beside a cell. Please help
thanks
0
Comment
Question by:Jenedge73
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 12

Expert Comment

by:Harry Lee
ID: 39634220
Let say, if you want the cell address of a cell to the right,

You put this in B1,
=CELL("address",A1)

Open in new window


That will show the address of the referenced cell.
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39634221
Can you elaborate a little on what you mean?
0
 

Author Comment

by:Jenedge73
ID: 39634265
lets say I have a wookbook with 10 worksheets and one of them are labeled summary
I want the value of a specific cell from workbook1 displayed in cell A1 of the summary workbook.  and then in B1 of the summary page I want it to say 'workbook1'!A1.  is there a formula I can do this with?
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39634323
One way is

Format B1 as "Text"
Highlight the formula (not just select the cell) in A1 and then copy it
Paste the formula in B1
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 23

Expert Comment

by:NBVC
ID: 39634329
If you have a list of all the sheets you are looking for listed somewhere in the sheet, then name that range something like TabNames.

Then assuming the match is to be found in one of those sheets, somewhere in column A, you can use formula like:

=ADDRESS(MATCH(A1,INDIRECT("'"&INDEX(TabNames,MATCH(TRUE,COUNTIF(INDIRECT("'"&TabNames&"'!A1:A60"),A1)>0,0))&"'!A1:A60"),0),1,4,1,INDEX(TabNames,MATCH(TRUE,COUNTIF(INDIRECT("'"&TabNames&"'!A1:A60"),A1)>0,0),1))

Open in new window


confirmed with CTRL+SHIFT+ENTER not just ENTER
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 39634330
You can also use VBA

Paste this code in a new module

Function getsource(x As Range)
getsource = x.Formula
End Function

and use this formula in B1

=getsource(A1)
0
 
LVL 12

Expert Comment

by:Harry Lee
ID: 39634525
Jenedge73,

I would say ssaqibh's solution is the best and cleanest.
0
 
LVL 81

Accepted Solution

by:
byundt earned 500 total points
ID: 39635163
In Excel 2013, there is a new function FORMULATEXT. Using it, you could return the source with:
=MID(FORMULATEXT(A1),2,99)

The MID function was added to remove the initial equals sign from the formula.

The above formula assumes that cell A1 contains a formula like:
='Workbook 1'!B47
The MID & FORMULATEXT formula would then return:     'Workbook 1'!B47
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now