+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : VLookup with free key option?

  1. #1
    Registered User
    Join Date
    09-26-2008
    Location
    North Myrtle Beach
    MS-Off Ver
    365 Business
    Posts
    82

    VLookup with free key option?

    Is there a way to use the Vlookup formula also giving the user the opportunity to hard key data? I have a sheet with drop-down list in column A and the Vlookup (for price) in column B; however, they need to be able to hard key data into col A (if product not in the drop-down provided) and then subsequently hard key the price into Col B....there is bound to be VBA code I can use instead of the vlookup formula directly in the cells in column B

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: VLookup with free key option?

    You could try this, or some variation of the principle.

    =IF(ISERROR(VLOOKUP(First_Ref,LookupList,Column,FALSE)),VLOOKUP(Alt_Ref,LookupList,Column,FALSE),VLOOKUP(First_Ref,LookupList,Column,FALSE))

    Where First_Ref is your validation list with no value entered, and Alt_Ref is the cell to type your missing entry.

    Why is there missing entries in your validation list?
    It would be better to fix that, than guess at some missing piece of data. No?

    Hope this helps
    Last edited by Marcol; 09-21-2010 at 11:38 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: VLookup with free key option?

    That last post was not very clear.

    This example workbook might help to explain better.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-26-2008
    Location
    North Myrtle Beach
    MS-Off Ver
    365 Business
    Posts
    82

    Re: VLookup with free key option?

    I am going to attach a sample to try to explain what I need more clearly. The user will select the product from the validation list in column A and that products price pops into column B.. However, if they need a product not listed in the validation list in column A, they need to be able to type the new product name in column A as well as type the price into column B - I don't want to delete the vlookup option when they type tho - I was hoping there was VBA code for a macro that could be used instead of the vlookup formula in the cells.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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