+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Getting a cell reference used in a formula

  1. #1
    Registered User
    Join Date
    04-21-2010
    Location
    Worcester, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Getting a cell reference used in a formula

    I am using an index formula, but would like to return the cell reference used in that formula into another cell. Any ideas?

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Getting a cell reference used in a formula

    Not very clear I'm afraid - if you need to access a hard wired parameter from the other formula then you will be looking at VBA.

    Could you elaborate by means of example(s) ?

  3. #3
    Registered User
    Join Date
    04-21-2010
    Location
    Worcester, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Getting a cell reference used in a formula

    This is the formula I am using:

    =INDEX('bfp pivot'!7:7,MAX(COLUMN('bfp pivot'!7:7)*('bfp pivot'!7:7<>"")))
    What I would like to do is set up another cell next to it that tells me what cell the index formula used to return the result....

    Ps - thanks for the swift reply....

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Getting a cell reference used in a formula

    try

    =cell("address",INDEX('bfp pivot'!7:7,MAX(COLUMN('bfp pivot'!7:7)*('bfp pivot'!7:7<>""))))

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Getting a cell reference used in a formula

    Array formula, commit with CTRL+SHIFT+ENTER

    =ADDRESS(7,MAX(COLUMN('bfp pivot'!7:7)*('bfp pivot'!7:7<>"")))
    Cheers
    Andy
    www.andypope.info

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Getting a cell reference used in a formula

    Or, yet another alternative might be:

    =ADDRESS(7,LOOKUP(2,1/('bfp pivot'!7:7<>""),COLUMN(7:7)),,,"bfp pivot")
    confirmed with Enter

    If the data type you're looking for in row 7 is constant (number, text etc...) you can simplify further.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1