+ Reply to Thread
Results 1 to 5 of 5

Return cell reference

  1. #1
    Registered User
    Join Date
    02-28-2016
    Location
    QLD
    MS-Off Ver
    2010
    Posts
    2

    Return cell reference

    Hello all,

    Sorry if this makes no sense.

    What I want to do is look upward relative to a cell to find the cell containing a site number then return the cell reference so then I can extract the site number from the text and populate another cell.

    So for cell A:10 to A:12 I would like to return the cell ref of A:8 and cells A:16 to A:20 I would like to return the cell ref A:14 and so on.

    Any help would be appreciated.
    Thanks in advance.
    Bas.
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Return cell reference

    Use this in A10 and copy paste to all other cells.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Return cell reference

    Try this...

    Entered in G10 and copied down:

    =IF(ISNUMBER(B10),ADDRESS(LOOKUP(2,1/(A$1:A10=""),ROW(A$1:A10))+1,1,4),"")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    02-28-2016
    Location
    QLD
    MS-Off Ver
    2010
    Posts
    2

    Re: Return cell reference

    Thanks Guys. Both methods worked. Zbor's method returned the text and Tony's returned the cell reference. Thanks again!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Return cell reference

    You're welcome. We appreciate the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Return cell reference instead of value
    By lmason in forum Excel General
    Replies: 3
    Last Post: 03-30-2021, 07:37 PM
  2. Search a cell reference and return another cell reference
    By klixcel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-05-2016, 04:11 PM
  3. [SOLVED] UDF to return string of values of all rows with cell matching reference cell
    By oemgacaesar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-20-2012, 12:43 PM
  4. [SOLVED] Return Cell Reference
    By Mike_e in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-17-2011, 06:28 AM
  5. Return of cell reference
    By Saturn in forum Excel General
    Replies: 5
    Last Post: 06-13-2010, 03:44 AM
  6. [SOLVED] How to return cell reference
    By et in forum Excel General
    Replies: 9
    Last Post: 06-10-2006, 05:55 PM
  7. Return value in cell above the reference
    By Jean in forum Excel General
    Replies: 4
    Last Post: 05-31-2006, 02:50 PM

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