+ Reply to Thread
Results 1 to 8 of 8

Vlookup function

  1. #1
    Registered User
    Join Date
    09-22-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    14

    Vlookup function

    Hi hope you can help. I am creating a simple daily log for our controllers (cab office) , my aim is they select a office London Carriages or Paddington and a predefined list of drivers shows under drivers for that office (all works ok) then dependent on driver selected from filtered list the relevent details for that driver populate other cells ie Car Registration, Car Model.

    This is where i got stuck and cant get it to populate. If you can help that would be really great . Thank you
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,911

    Re: Vlookup function

    j12=VLOOKUP($I12,Sheet1!$C$2:$G$5,2,FALSE)
    K12=VLOOKUP($I$12,Sheet1!$C$2:$G$5,3,FALSE)
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    09-22-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Vlookup function

    Thanks for the really quick reply did you test it as i copied formula and get 0 value changed reference to C5 not G5 still no good changed to sheet1!C5 also still no good.

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,911

    Re: Vlookup function

    see the attached file
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-22-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Vlookup function

    HI this works but for some reason now the select company list does not now display drivers. So how it should work select paddington and shows paddington drivers and polulates using your great look up function or if the select london carriages then displays london carriages drivers and on select driver shows details using your vlookup
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,135

    Re: Vlookup function

    In DV for Drivers

    source:

    =INDIRECT(SUBSTITUTE(D12," ","_")&"_Drivers")

    or

    =INDIRECT(SUBSTITUTE(D12," ","_")

    removing "Drivers" from named ranges

    Change VLOOKUP

    in J

    =IFERROR(IF($D12="London Carriages",VLOOKUP($I12,Sheet1!$C$2:$G$10,2,FALSE),VLOOKUP($I12,Sheet1!$I$2:$K$10,2,FALSE)),"")

    in K

    =IFERROR(IF($D12="London Carriages",VLOOKUP($I12,Sheet1!$C$2:$G$10,3,FALSE),VLOOKUP($I12,Sheet1!$I$2:$K$10,3,FALSE)),"")
    Attached Files Attached Files
    Last edited by JohnTopley; 05-16-2018 at 08:57 AM.

  7. #7
    Registered User
    Join Date
    09-22-2009
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Vlookup function

    Hi i really thank you for your great help and rest assured i will be giving you a great feedback. but on the sheet you sent everything works except lookup if you select padding ton driver.

    If yoou select company paddington then you can choose paddington driver just how it should be but then select driver and the other vlookupdetails dontsho

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,135

    Re: Vlookup function

    Yes they do if you correct the VLOOKUP formulae as per last post

    Sorry: did not post updated file with VLOOKUP corrections.
    Attached Files Attached Files
    Last edited by JohnTopley; 05-16-2018 at 09:02 AM.

+ 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. Formula Structure Error When Combining IF Function with VLOOKUP Function
    By EverClever in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-16-2017, 03:11 PM
  2. [SOLVED] VLOOKUP formula or VLOOKUP worksheet.function
    By Crispy85 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-09-2017, 09:40 AM
  3. Replies: 2
    Last Post: 01-15-2014, 11:40 PM
  4. Need help nesting an index/match function within a Vlookup function.
    By Christopher135 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-04-2013, 06:16 PM
  5. Worksheet function Vlookup and VLOOKUP return different results
    By zandero in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2010, 08:24 AM
  6. Replies: 1
    Last Post: 12-02-2005, 09:35 AM
  7. [SOLVED] vlookup function-Can vlookup command find the data from the 5 sheets.
    By Rishab shah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 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