Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
SteveR
 
Posts: n/a
Default accessing an address stored in another cell

Is it possible to access an address stored in another cell? For example:

G100 = "test"

A100 = +G100

Now, can I get any information about the address stored in A100, which is
G100?

In C100, I would like to do something like =ROW(address stored in A100).
  #2   Report Post  
paul
 
Posts: n/a
Default

look at the indirect function
--
paul
remove nospam for email addy!



"SteveR" wrote:

Is it possible to access an address stored in another cell? For example:

G100 = "test"

A100 = +G100

Now, can I get any information about the address stored in A100, which is
G100?

In C100, I would like to do something like =ROW(address stored in A100).

  #3   Report Post  
SteveR
 
Posts: n/a
Default

Thanks, but Indirect wants a textual cell address and that's not what resides
in my target cell (A100).

"paul" wrote:

look at the indirect function
--
paul
remove nospam for email addy!



"SteveR" wrote:

Is it possible to access an address stored in another cell? For example:

G100 = "test"

A100 = +G100

Now, can I get any information about the address stored in A100, which is
G100?

In C100, I would like to do something like =ROW(address stored in A100).

  #4   Report Post  
Mangesh Yadav
 
Posts: n/a
Default

Use the udf:

The Code for GetFormula
Function GetFormula(Cell as Range) as String
GetFormula = Cell.Formula
End Function

Source:
http://www.mvps.org/dmcritchie/excel/formula.htm


Mangesh




"SteveR" wrote in message
...
Thanks, but Indirect wants a textual cell address and that's not what

resides
in my target cell (A100).

"paul" wrote:

look at the indirect function
--
paul
remove nospam for email addy!



"SteveR" wrote:

Is it possible to access an address stored in another cell? For

example:

G100 = "test"

A100 = +G100

Now, can I get any information about the address stored in A100, which

is
G100?

In C100, I would like to do something like =ROW(address stored in

A100).


  #5   Report Post  
Biff
 
Posts: n/a
Default

Hi!

In A100 enter G100, don't use the plus sign. You don't need to use plus
signs like that in Excel, anyhow.

So, if you have in cells:

G100 = test
A100 = G100

=INDIRECT(A100) will return test.

Biff

"SteveR" wrote in message
...
Thanks, but Indirect wants a textual cell address and that's not what
resides
in my target cell (A100).

"paul" wrote:

look at the indirect function
--
paul
remove nospam for email addy!



"SteveR" wrote:

Is it possible to access an address stored in another cell? For
example:

G100 = "test"

A100 = +G100

Now, can I get any information about the address stored in A100, which
is
G100?

In C100, I would like to do something like =ROW(address stored in
A100).





  #6   Report Post  
SteveR
 
Posts: n/a
Default

Thank you very much! uh -- one little problem. This is the first time I've
used the VB Editor. I pasted in

Function GetFormula(Cell As Range) As String
GetFormula = Cell.Formula
End Function

and still don't get anything but an error, when I do something like

=GetFormula(B1534)

"Mangesh Yadav" wrote:

Use the udf:

The Code for GetFormula
Function GetFormula(Cell as Range) as String
GetFormula = Cell.Formula
End Function

Source:
http://www.mvps.org/dmcritchie/excel/formula.htm


Mangesh




"SteveR" wrote in message
...
Thanks, but Indirect wants a textual cell address and that's not what

resides
in my target cell (A100).

"paul" wrote:

look at the indirect function
--
paul
remove nospam for email addy!



"SteveR" wrote:

Is it possible to access an address stored in another cell? For

example:

G100 = "test"

A100 = +G100

Now, can I get any information about the address stored in A100, which

is
G100?

In C100, I would like to do something like =ROW(address stored in

A100).



  #7   Report Post  
Mangesh Yadav
 
Posts: n/a
Default

In C100, enter:

=1*MID((MID(GetFormula(A100),2,255)),MATCH(FALSE,I SERROR(1*MID((MID(GetFormu
la(A100),2,255)),ROW(1:10),1)),0),255)

confrim with shift control enter

Use the UDF to GetFormula as shown in my earlier post. The formula above is
given in
http://www.emailoffice.com/excel/arrays-bobumlas.html


Mangesh




G100 = "test"
A100 = +G100
Now, can I get any information about the address stored in A100,

which is G100?
In C100, I would like to do something like =ROW(address stored in

A100).




"Mangesh Yadav" wrote in message
...
Use the udf:

The Code for GetFormula
Function GetFormula(Cell as Range) as String
GetFormula = Cell.Formula
End Function

Source:
http://www.mvps.org/dmcritchie/excel/formula.htm


Mangesh




"SteveR" wrote in message
...
Thanks, but Indirect wants a textual cell address and that's not what

resides
in my target cell (A100).

"paul" wrote:

look at the indirect function
--
paul
remove nospam for email addy!



"SteveR" wrote:

Is it possible to access an address stored in another cell? For

example:

G100 = "test"

A100 = +G100

Now, can I get any information about the address stored in A100,

which
is
G100?

In C100, I would like to do something like =ROW(address stored in

A100).




  #8   Report Post  
SteveR
 
Posts: n/a
Default

Okay, thanks again for the great help. For some reason, both formulas give
me an error. Maybe it has something to do with my version being 97.

"Mangesh Yadav" wrote:

In C100, enter:

=1*MID((MID(GetFormula(A100),2,255)),MATCH(FALSE,I SERROR(1*MID((MID(GetFormu
la(A100),2,255)),ROW(1:10),1)),0),255)

confrim with shift control enter

Use the UDF to GetFormula as shown in my earlier post. The formula above is
given in
http://www.emailoffice.com/excel/arrays-bobumlas.html


Mangesh




G100 = "test"
A100 = +G100
Now, can I get any information about the address stored in A100,

which is G100?
In C100, I would like to do something like =ROW(address stored in

A100).




"Mangesh Yadav" wrote in message
...
Use the udf:

The Code for GetFormula
Function GetFormula(Cell as Range) as String
GetFormula = Cell.Formula
End Function

Source:
http://www.mvps.org/dmcritchie/excel/formula.htm


Mangesh




"SteveR" wrote in message
...
Thanks, but Indirect wants a textual cell address and that's not what

resides
in my target cell (A100).

"paul" wrote:

look at the indirect function
--
paul
remove nospam for email addy!



"SteveR" wrote:

Is it possible to access an address stored in another cell? For

example:

G100 = "test"

A100 = +G100

Now, can I get any information about the address stored in A100,

which
is
G100?

In C100, I would like to do something like =ROW(address stored in

A100).





  #9   Report Post  
Mangesh Yadav
 
Posts: n/a
Default

In the VBE, go to Insert Module
Then paste the code in this module.

Mangesh



"SteveR" wrote in message
...
Thank you very much! uh -- one little problem. This is the first time

I've
used the VB Editor. I pasted in

Function GetFormula(Cell As Range) As String
GetFormula = Cell.Formula
End Function

and still don't get anything but an error, when I do something like

=GetFormula(B1534)

"Mangesh Yadav" wrote:

Use the udf:

The Code for GetFormula
Function GetFormula(Cell as Range) as String
GetFormula = Cell.Formula
End Function

Source:
http://www.mvps.org/dmcritchie/excel/formula.htm


Mangesh




"SteveR" wrote in message
...
Thanks, but Indirect wants a textual cell address and that's not what

resides
in my target cell (A100).

"paul" wrote:

look at the indirect function
--
paul
remove nospam for email addy!



"SteveR" wrote:

Is it possible to access an address stored in another cell? For

example:

G100 = "test"

A100 = +G100

Now, can I get any information about the address stored in A100,

which
is
G100?

In C100, I would like to do something like =ROW(address stored in

A100).





  #10   Report Post  
Mangesh Yadav
 
Posts: n/a
Default

You have probably pasted the code in the wrong module. As I said, put in in
a standard module by going to Insert Module. and then pasting the code.

Mangesh



"SteveR" wrote in message
...
Okay, thanks again for the great help. For some reason, both formulas

give
me an error. Maybe it has something to do with my version being 97.

"Mangesh Yadav" wrote:

In C100, enter:


=1*MID((MID(GetFormula(A100),2,255)),MATCH(FALSE,I SERROR(1*MID((MID(GetFormu
la(A100),2,255)),ROW(1:10),1)),0),255)

confrim with shift control enter

Use the UDF to GetFormula as shown in my earlier post. The formula above

is
given in
http://www.emailoffice.com/excel/arrays-bobumlas.html


Mangesh




G100 = "test"
A100 = +G100
Now, can I get any information about the address stored in A100,

which is G100?
In C100, I would like to do something like =ROW(address stored

in
A100).




"Mangesh Yadav" wrote in message
...
Use the udf:

The Code for GetFormula
Function GetFormula(Cell as Range) as String
GetFormula = Cell.Formula
End Function

Source:
http://www.mvps.org/dmcritchie/excel/formula.htm


Mangesh




"SteveR" wrote in message
...
Thanks, but Indirect wants a textual cell address and that's not

what
resides
in my target cell (A100).

"paul" wrote:

look at the indirect function
--
paul
remove nospam for email addy!



"SteveR" wrote:

Is it possible to access an address stored in another cell? For
example:

G100 = "test"

A100 = +G100

Now, can I get any information about the address stored in A100,

which
is
G100?

In C100, I would like to do something like =ROW(address stored

in
A100).









  #11   Report Post  
SteveR
 
Posts: n/a
Default

Got it! Thanks again for the top notch comments.

"Mangesh Yadav" wrote:

You have probably pasted the code in the wrong module. As I said, put in in
a standard module by going to Insert Module. and then pasting the code.

Mangesh



"SteveR" wrote in message
...
Okay, thanks again for the great help. For some reason, both formulas

give
me an error. Maybe it has something to do with my version being 97.

"Mangesh Yadav" wrote:

In C100, enter:


=1*MID((MID(GetFormula(A100),2,255)),MATCH(FALSE,I SERROR(1*MID((MID(GetFormu
la(A100),2,255)),ROW(1:10),1)),0),255)

confrim with shift control enter

Use the UDF to GetFormula as shown in my earlier post. The formula above

is
given in
http://www.emailoffice.com/excel/arrays-bobumlas.html


Mangesh




G100 = "test"
A100 = +G100
Now, can I get any information about the address stored in A100,
which is G100?
In C100, I would like to do something like =ROW(address stored

in
A100).




"Mangesh Yadav" wrote in message
...
Use the udf:

The Code for GetFormula
Function GetFormula(Cell as Range) as String
GetFormula = Cell.Formula
End Function

Source:
http://www.mvps.org/dmcritchie/excel/formula.htm


Mangesh




"SteveR" wrote in message
...
Thanks, but Indirect wants a textual cell address and that's not

what
resides
in my target cell (A100).

"paul" wrote:

look at the indirect function
--
paul
remove nospam for email addy!



"SteveR" wrote:

Is it possible to access an address stored in another cell? For
example:

G100 = "test"

A100 = +G100

Now, can I get any information about the address stored in A100,
which
is
G100?

In C100, I would like to do something like =ROW(address stored

in
A100).








  #12   Report Post  
Mangesh Yadav
 
Posts: n/a
Default

Glad its working. Thanks for the feedback.

Mangesh



"SteveR" wrote in message
...
Got it! Thanks again for the top notch comments.

"Mangesh Yadav" wrote:

You have probably pasted the code in the wrong module. As I said, put in

in
a standard module by going to Insert Module. and then pasting the

code.

Mangesh



"SteveR" wrote in message
...
Okay, thanks again for the great help. For some reason, both formulas

give
me an error. Maybe it has something to do with my version being 97.

"Mangesh Yadav" wrote:

In C100, enter:



=1*MID((MID(GetFormula(A100),2,255)),MATCH(FALSE,I SERROR(1*MID((MID(GetFormu
la(A100),2,255)),ROW(1:10),1)),0),255)

confrim with shift control enter

Use the UDF to GetFormula as shown in my earlier post. The formula

above
is
given in
http://www.emailoffice.com/excel/arrays-bobumlas.html


Mangesh




G100 = "test"
A100 = +G100
Now, can I get any information about the address stored in

A100,
which is G100?
In C100, I would like to do something like =ROW(address

stored
in
A100).




"Mangesh Yadav" wrote in message
...
Use the udf:

The Code for GetFormula
Function GetFormula(Cell as Range) as String
GetFormula = Cell.Formula
End Function

Source:
http://www.mvps.org/dmcritchie/excel/formula.htm


Mangesh




"SteveR" wrote in message
...
Thanks, but Indirect wants a textual cell address and that's not

what
resides
in my target cell (A100).

"paul" wrote:

look at the indirect function
--
paul
remove nospam for email addy!



"SteveR" wrote:

Is it possible to access an address stored in another cell?

For
example:

G100 = "test"

A100 = +G100

Now, can I get any information about the address stored in

A100,
which
is
G100?

In C100, I would like to do something like =ROW(address

stored
in
A100).










Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell color based upon cell value My View Excel Discussion (Misc queries) 11 July 6th 05 03:59 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
ADDRESS function - dynamic input cell claytorm Excel Discussion (Misc queries) 1 June 28th 05 02:05 PM
How do I find the contents of a cell using the "ADDRESS" function. sweeney Excel Worksheet Functions 2 April 5th 05 03:23 AM
How do I dynamically retrieve the cell address of the last cell t. Nancy Excel Discussion (Misc queries) 1 December 20th 04 02:52 PM


All times are GMT +1. The time now is 06:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"