+ Reply to Thread
Results 1 to 6 of 6

Using selected cell instead of typing input into vlookup?

Hybrid View

RWheldon Using selected cell instead... 01-26-2009, 08:46 AM
davesexcel Re: Using selected cell... 01-26-2009, 08:53 AM
davesexcel Re: Using selected cell... 01-26-2009, 09:14 AM
RWheldon Re: Using selected cell... 01-26-2009, 09:30 AM
royUK Re: Using selected cell... 01-26-2009, 09:39 AM
RWheldon (Solved) Re: Using selected... 01-26-2009, 10:40 AM
  1. #1
    Registered User
    Join Date
    01-22-2009
    Location
    Worcester, England.
    MS-Off Ver
    Excel 2003
    Posts
    5

    Using selected cell instead of typing input into vlookup?

    Hi,

    I am probably going beyond the realms of excel here. Is it possible to click on a cell and use the cell info as the input data for a search instead of typing data into a cell for a vlookup?

    For example, I have a spreadsheet with numbers corresponding to stock codes. Would it be posible to just click on the stock number to return the information on the stock (levels, sizes etc...) instead of typing the stock code in for a vlookup calculation.

    I am happy with how the vlookup works, just trying to cut corners.

    Thanks,
    Last edited by RWheldon; 01-26-2009 at 10:41 AM.

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

    Re: Using selected cell instead of typing input into vlookup?

    What's supposed to happen when you click the cell?

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

    Re: Using selected cell instead of typing input into vlookup?

    Here's a small example
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-22-2009
    Location
    Worcester, England.
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Using selected cell instead of typing input into vlookup?

    Thanks for reply. Were I work is a large sales yard containing many static caravans. These are always being moved around so I deceided to create a spreadsheet which would highlight a chosen caravan. (see attached). This can then be printed and taken as a 'map'. What I would like to do with it, is when a caravan (number) is clicked on, it will populate the detailed information on the right hand side of the spreadsheet (currently manually typed in using vlookup to my data spreadsheet).

    I hope this explains a little clearer?

    Thanks again.
    Attached Files Attached Files

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Using selected cell instead of typing input into vlookup?

    Use this code,

    Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
        If IsNumeric(Target.Value) Then
            Cancel = True
            Range("ab4").Value = Target.Value
        End If
    End Sub
    Last edited by royUK; 01-26-2009 at 09:49 AM. Reason: edit code
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Registered User
    Join Date
    01-22-2009
    Location
    Worcester, England.
    MS-Off Ver
    Excel 2003
    Posts
    5

    (Solved) Re: Using selected cell instead of typing input into vlookup?

    Many thanks!

    There is certainly some knowledgeable Excel people on this forum.!

    Problem solved yet again.

+ 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