Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi-
Is there any way a formula can get the location of the cell it is placed in? I need the row and column of the cell at recalculation time, not at the time formula was entered, so ActiveCell won't do the job. Thanks in advance for any help. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Bernard,
Application.Caller will return a Range reference pointing to the cell containing the formula. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Bernard" wrote in message ... Hi- Is there any way a formula can get the location of the cell it is placed in? I need the row and column of the cell at recalculation time, not at the time formula was entered, so ActiveCell won't do the job. Thanks in advance for any help. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
=ROW() - gives you the row number of the cell this formula is in =COLUMN() - the column number =ADDRESS(ROW(),COLUMN()) the cell reference -- Regards Frank Kabel Frankfurt, Germany Bernard wrote: Hi- Is there any way a formula can get the location of the cell it is placed in? I need the row and column of the cell at recalculation time, not at the time formula was entered, so ActiveCell won't do the job. Thanks in advance for any help. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Public MyFunction( )
set rng = Application.Caller rw = rng.row col = rng.column MyFunction = rng.address End Function -- Regards, Tom Ogilvy "Bernard" wrote in message ... Hi- Is there any way a formula can get the location of the cell it is placed in? I need the row and column of the cell at recalculation time, not at the time formula was entered, so ActiveCell won't do the job. Thanks in advance for any help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
a formula that return the cell location in a range | Excel Discussion (Misc queries) | |||
Macro - save to current location vs excel default location | Excel Discussion (Misc queries) | |||
How do you have a formula range be determined by the location ofanother cell? | Excel Worksheet Functions | |||
Using Dynamic Cell Address As Formula Location | Excel Worksheet Functions | |||
how to auto increment cell location within formula | Excel Worksheet Functions |