+ Reply to Thread
Results 1 to 8 of 8

VLOOKUP on click cell

  1. #1
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    VLOOKUP on click cell

    Hi,
    How to say this :
    at cell K1=Vlookup(Cell Click,Range,2,0) ?
    so Lookup_Value to be the cell I have click
    Thank you
    Last edited by ionelz; 02-02-2023 at 08:24 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: VLOOKUP on click cell

    What is range you are clicking?

    Lets assume it is Column A

    You don't need vlookup, just get the value next to the clicked cell

    Please Login or Register  to view this content.

    I have attached a small sample workbook. Right click on the sheet tab and select "View Code"

    See here for worksheet events and where the code goes in the worksheet module

    https://www.excelforum.com/tips-and-...et-events.html
    Attached Files Attached Files
    Last edited by davesexcel; 02-02-2023 at 08:44 AM.

  3. #3
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: VLOOKUP on click cell

    I am Clicking in Range J9:J15
    I V looking in Range AA2:AB50
    So I7=vlookup (value click from J9:J15,aa2:ab50,2,0)
    So range J9:J15 is in range aa2:aa50
    I do need vlookup
    Last edited by ionelz; 02-02-2023 at 08:52 AM.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: VLOOKUP on click cell

    Okay, replace with this code instead

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: VLOOKUP on click cell

    All Ok now, thank you
    Could you help a little more ? I have 3 Ranges where I click : J9:J15 , N9:N15 , R9:R15
    For all , I am looking in same Range AA2:AB50
    So change is only (I hope) here .....Me.Range("J9:J15") where I have 3 ranges not only one
    And another change, when I click outside of these 3 ranges then nothing(clear) at I7

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: VLOOKUP on click cell

    Attach a sample workbook

    Did you look at the link I sent you in Post #2

  7. #7
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: VLOOKUP on click cell

    All Ok, but I get an error message when I select , Left corner, Entire sheet...
    Run-time error 440, method find an object failed

  8. #8
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: VLOOKUP on click cell

    Ya, you need to make sure there is not more than 1 target selected.

    Try counting the target first

    Please Login or Register  to view this content.

+ 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. Replies: 13
    Last Post: 11-25-2020, 08:30 PM
  2. [SOLVED] VLookup returning #n/a unless I double click the lookup table cell
    By Dotreena in forum Excel General
    Replies: 9
    Last Post: 01-16-2018, 11:28 AM
  3. vLOOKUP returning #NA until I double click in the lookup value cell
    By Riehl in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-16-2018, 09:27 AM
  4. A macro to right click a cell and select a item from the right click menu?
    By Peavey in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-13-2014, 10:55 AM
  5. vlookup: I have to double click each cell to get correct results?
    By gillyd in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-24-2006, 09:10 AM
  6. [SOLVED] WHY DO I HAVE TO CLICK ON THE CELL & ENTER FOR THE VLOOKUP TOWORK
    By Half Manx in forum Excel General
    Replies: 4
    Last Post: 09-29-2005, 08:05 AM
  7. Replies: 4
    Last Post: 08-02-2005, 09:05 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