+ Reply to Thread
Results 1 to 9 of 9

vlookup issue

  1. #1
    Registered User
    Join Date
    02-07-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    4

    vlookup issue

    hi guys and girls.

    I have the following issue which drives me almost insane.

    I have a worksheet which has as use showing asset data with vlookup. I fill in a Asset Tag and in the selected cells the other data which has been imported in the second sheet shows the info. I fill in by example EU201556 and then i see everything. Now the raised the question for searching on user name to show the data. so logically i thought because the vlookup sprain the whole sheet from A2 cell till BO1000 it shows the data but it doesn't.

    I've tested on an empty clean sheet and there it did work. How can i make this work.

    Also i like to import the ping option button which pings the asset tag given. Can anyone help me hereAssetLookup_airs_example.xlsm

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: vlookup issue

    No vlookup only searches in the leftmost column so is searching in column C only

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: vlookup issue

    rcm, that is not strictly true, there is a way to use vlookup() and look to the left of it, but it is an advanced formula, so we just suggest index/match for that.

    Roelof, which column do you want to use for the Assety tag? you have 2, but that asset tag (eu202312) actually isnt in either column
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: vlookup issue

    Thanks Fdibbins, I have only used unadvanced vlookup

  5. #5
    Registered User
    Join Date
    02-07-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: vlookup issue

    Hi ford,

    in sheet csv its colom C where the asset tags are. so what i need is that when i fill in the name of an end user it shows the same data but search by asset tag must be working also.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: vlookup issue

    Hi,

    You can't have a VLOOKUP in C7 User Name for when you choose to select an asset tag and then manually enter a User name and expect the Asset tag, which doesn't have a formula, to work. You'd need a sheet change macro to do that. i.e.

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  7. #7
    Registered User
    Join Date
    02-07-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: vlookup issue

    Hi richard,

    in the original file in the first sheet (show list) was a macro, see below
    Please Login or Register  to view this content.
    So what can i do best, make e new sheet special for name lookup or build in the code. Im a bit new with vba coding, if you can explain a bit of how the macro workes i would be gratefull, i like to learn

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: vlookup issue

    Hi,

    If that original macro is still relevant, then put the code I gave you inside the same procedure. It probably doesn't matter where as long as it's before or after the existing code, and obviously before the Exit sub instruction.

  9. #9
    Registered User
    Join Date
    02-07-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: vlookup issue

    Richard thanx for the reply,

    im going to this afternoon and let you know how it goes.
    I hope it works. I mean it works fine for me on asset tag search but some think its handy to have name search also....

    roelof

+ 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. Vlookup issue
    By ln1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-03-2012, 10:54 AM
  2. vlookup issue?
    By HP RodNuclear in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2011, 01:26 PM
  3. Vlookup issue
    By philiasfogg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-26-2009, 06:43 AM
  4. VLOOKUP Issue
    By Zander in forum Excel General
    Replies: 3
    Last Post: 03-18-2009, 05:50 PM
  5. Vlookup Issue (again)
    By melegaunt in forum Excel General
    Replies: 3
    Last Post: 01-24-2009, 08:46 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