+ Reply to Thread
Results 1 to 11 of 11

VLOOKUP data on another worksheet using dropdown

Hybrid View

  1. #1
    Registered User
    Join Date
    01-10-2015
    Location
    London
    MS-Off Ver
    Mac 2011
    Posts
    5

    VLOOKUP data on another worksheet using dropdown

    I've been going round in circles with this for hours and am close to giving up so any help gratefully received!

    I have an invoice sheet with a defined table (Product Code, Product, Quantity, Cost Per Unit, Total) and a second sheet called Products with another defined table (Product, Product Code, Cost Per Unit). On the invoice I want to be able to select the Product cell on the invoice which is a drop down showing the various products on the Products sheet. I've managed that using data validation.

    Next I want the other cells on the invoice to be populated based on the product I've chosen. I figured this would be with VLOOKUP. So my formula for the Product Code on the invoice is this: =VLOOKUP([@Product],tbl_products,2) but whatever I try I either get #N/A or it pulls in totally the wrong values.

    On my products sheet there are gaps because I've used headings for each type of product and there are also characters like ' and " in the Product column (e.g.5'6" Round Table) Could this be my problem?

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: VLOOKUP data on another worksheet using dropdown

    What is [@Product] ?
    If someone has helped you then please add to their Reputation

  3. #3
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: VLOOKUP data on another worksheet using dropdown

    VLOOKUP needs the data in the lookup column to be in order so it shouldn't have gaps either

  4. #4
    Forum Contributor
    Join Date
    10-29-2014
    Location
    udaipur, rajasthan
    MS-Off Ver
    2013
    Posts
    365

    Re: VLOOKUP data on another worksheet using dropdown

    hi stirling,

    Can you please upload a sample file, with expected result.. for better understand.
    If answer helped you say Thanks by Add Reputation

  5. #5
    Registered User
    Join Date
    01-10-2015
    Location
    London
    MS-Off Ver
    Mac 2011
    Posts
    5

    Re: VLOOKUP data on another worksheet using dropdown

    Wow, quick replies. Thanks.
    @Product is the Table cell on the invoice that I want to lookup on the Product sheet table.

    The data in the lookup column doesn't have any gaps, the gaps are on the other columns.

    I've attached my excel file as I'm struggling to explain it I think! This is what I'm after: http://www.excel-university.com/sele...le-attributes/

    Invoice test.xls

  6. #6
    Forum Contributor
    Join Date
    10-29-2014
    Location
    udaipur, rajasthan
    MS-Off Ver
    2013
    Posts
    365

    Re: VLOOKUP data on another worksheet using dropdown

    Hi stirling,

    See the file is this ok ?

    Feedback please.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-10-2015
    Location
    London
    MS-Off Ver
    Mac 2011
    Posts
    5

    Re: VLOOKUP data on another worksheet using dropdown

    That's great, thanks. So you've used INDEX/MATCH rather than VLOOKUP. I wondered whether that was a better option.

    I see that it looks up a range of cells rather than the table and when I added more products it automatically picked that up on the invoice which is exactly what I need.

    Only question is that it tells me there is an error on the code and cost per unit cells. Any ideas what that would be or should I just ignore it?

  8. #8
    Forum Contributor
    Join Date
    10-29-2014
    Location
    udaipur, rajasthan
    MS-Off Ver
    2013
    Posts
    365

    Re: VLOOKUP data on another worksheet using dropdown

    Hallo Again,

    Can you please show which error its showing.

  9. #9
    Registered User
    Join Date
    01-10-2015
    Location
    London
    MS-Off Ver
    Mac 2011
    Posts
    5

    Re: VLOOKUP data on another worksheet using dropdown

    It says 'Formula refers to empty cells' even though it has the correct value.

  10. #10
    Registered User
    Join Date
    01-10-2015
    Location
    London
    MS-Off Ver
    Mac 2011
    Posts
    5

    Re: VLOOKUP data on another worksheet using dropdown

    All working fine despite those error messages. Have just ignored them. Thanks very much for your help.

  11. #11
    Forum Contributor
    Join Date
    10-29-2014
    Location
    udaipur, rajasthan
    MS-Off Ver
    2013
    Posts
    365

    Re: VLOOKUP data on another worksheet using dropdown

    Hi Stirling,

    thank you for response and "repu" just make sure if you have any issue in this please write back..

    Happy to help you..

+ 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. [SOLVED] Returning data from a dropdown box using vlookup
    By Paragoomba in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-28-2013, 09:00 AM
  2. save data to worksheet dependent on userform dropdown
    By mhill in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-17-2009, 03:57 PM
  3. VLOOKUP specific data for month required via dropdown list
    By Toni Bennett in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-07-2006, 11:35 AM
  4. Pull list / dropdown data from another worksheet?
    By Annabelle in forum Excel General
    Replies: 2
    Last Post: 02-16-2006, 11:35 AM
  5. [SOLVED] How do I copy my dropdown box with data to another worksheet?
    By Tess in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-10-2005, 05:06 PM

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