+ Reply to Thread
Results 1 to 4 of 4

Lookup Result - Cell Address, not the contents

Hybrid View

  1. #1
    Registered User
    Join Date
    04-15-2008
    Posts
    17

    Lookup Result - Cell Address, not the contents

    Hi

    I am drafting a large excel asset register spreadsheet.

    I am having issues with a vlookup. What i am wanting is for the Vlookup formula to give me the cell address, rather than its result.

    I have attached a example of what i am looking for.

    Any help will be appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Lookup Result - Cell Address, not the contents

    Maybe something like

    = "F" & MATCH(C9,C3:C6,0) + CELL("row",C3:C6)-1

  3. #3
    Registered User
    Join Date
    04-15-2008
    Posts
    17

    Re: Lookup Result - Cell Address, not the contents

    Hi mrice.

    Thanks you, It's close but the result would need to be totally dynamic. I will be using this register for multiple clients and sometimes the "F" column will not always be relevant. I am also not going to be only one using it, so it kind of needs to be idiot proof as well (or as close as).

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Lookup Result - Cell Address, not the contents

    Could try a user defined function

    Function VLOOKUPSpecial(LookupValue As Range, LookupRange As Range, IndexNumber As Integer) As String
    For N = LookupRange.Row To LookupRange.Row + LookupRange.Rows.Count - 1
        If Cells(N, LookupRange.Column) = LookupValue Then
            VLOOKUPSpecial = Cells(N, LookupRange.Column).Offset(0, IndexNumber - 1).Address
            Exit Function
        End If
    Next N
    End Function
    Type =VLOOKUPSpecial(A1,A1:D7,3) for instance.

+ 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