+ Reply to Thread
Results 1 to 8 of 8

VLookup and return the cell reference.

  1. #1
    Registered User
    Join Date
    09-20-2009
    Location
    Melton Mowbray, England
    MS-Off Ver
    Excel 2003
    Posts
    11

    VLookup and return the cell reference.

    Hi there,
    Thanks for all your help with previous problem and works well, I just need one more thing. I was wondering if there is a way that you can get the cells address from a VLOOKUP? Using the code below, once it has found lookFor could it return it's address so in later code I could find the Offset of that cell.
    Please Login or Register  to view this content.
    Many thanks.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,355

    Re: VLookup and return the cell reference.

    Hi,

    If found is a range then

    found.row and found.column

    will give you the row and column.

    Is that what you wanted?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    09-20-2009
    Location
    Melton Mowbray, England
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: VLookup and return the cell reference.

    What I need is the cell reference of the found item, my spreadsheet is a small production schedule project and the titles are:

    NUMBER NAME TYPE SALES PURCHASE

    so if found = is a NAME I won't to find the cell reference of that NAME so then I can OFFSET that cell to return the NUMBER, so if the NAME is ROW 123, 123 can be used in the OFFSET. Sorry I'm a beginner.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,355

    Re: VLookup and return the cell reference.

    The best way to understand your need and the answer is for you to produce a simple sample workbook.

    You can attach one using the "Go Advanced" below the message area and then on the Paper Clip Icon above the advanced message area. This will allow you to attach a sample file.

    Be sure to show what is given and what you want the outcome to look like.

  5. #5
    Registered User
    Join Date
    09-20-2009
    Location
    Melton Mowbray, England
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: VLookup and return the cell reference.

    Hi Here's a simplified version of the spreadsheet.
    Thanks again.
    Attached Files Attached Files

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,355

    Re: VLookup and return the cell reference.

    Hey - now I see what you were thinking

    Look at my code in your userform, where FIND is most likely a better method and what you really want.

    When you used VLookup and want the 14 column it would come back with the number that is in column O after it found what you were searching for.

    Look at the attached and Userform code.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-20-2009
    Location
    Melton Mowbray, England
    MS-Off Ver
    Excel 2003
    Posts
    11

    Talking Re: VLookup and return the cell reference.

    Thanks you're a star, just the job.
    Thanks again.
    Last edited by Fabius; 04-17-2011 at 03:09 PM.

  8. #8
    Registered User
    Join Date
    09-20-2009
    Location
    Melton Mowbray, England
    MS-Off Ver
    Excel 2003
    Posts
    11

    [SOLVED]Re: VLookup and return the cell reference.

    Thanks again very happy

+ 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