Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / May 2008

Tip: Looking for answers? Try searching our database.

Placing Col & Row identifiers into a cell as text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 28 May 2008 00:54 GMT
How do I get the Col letter and Row number of a cell (without the page name)
to appear as text in another cell?

Using the =CELL("address",xxx) and clicking on another page for the xxx cell
places the entire [workbook name]sheetname!$col$row in the cell.  I only want
the col letter and the row #.  How do I get only these?
Pete_UK - 28 May 2008 01:34 GMT
Here's one way:

=RIGHT(CELL("address",Sheet2!xxx),LEN(CELL("address",Sheet2!xxx))-
FIND("!",CELL("address",Sheet2!xxx)))

where xxx is the cell reference. If you do not want $ symbols, you can
use SUBSTITUTE around the formula to change them to blanks.

Hope this helps.

Pete

> How do I get the Col letter and Row number of a cell (without the page name)
> to appear as text in another cell?
>
> Using the =CELL("address",xxx) and clicking on another page for the xxx cell
> places the entire [workbook name]sheetname!$col$row in the cell.  I only want
> the col letter and the row #.  How do I get only these?
Dave - 28 May 2008 01:43 GMT
Hi John,
Try this:
=RIGHT(CELL("address",Sheet2!A1),4)

This gives the last 4 characters, which eliminates the unwanted stuff.

Regards - Dave
Dave - 28 May 2008 01:46 GMT
Oops,
UK Pete's answer is better. Mine doesn't work above row 9 or column Z
Regards - Dave
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.