+ Reply to Thread
Results 1 to 9 of 9

VLOOKUP Images?

  1. #1
    Registered User
    Join Date
    12-05-2019
    Location
    Liverpool, England
    MS-Off Ver
    365
    Posts
    4

    VLOOKUP Images?

    Hi all.

    I have a query if anyone can help?

    I have a list of employees in Sheet2 of my Excel sheet (called Staff). The sheet has 6 columns (Name, NI No, Staff Qualifications, What Staff Can Use, Staff Card FR, Staff Card BK). The first four columns are data, but the final two are images.

    On Sheet one, I want to be able to select an employee in column 1, which then populates 2 - 6 with the rest of the data from Sheet2.

    I've done this fine with the data columns, but can't find any way to do it with the images?

    So for NI No, for example, I have used: =VLOOKUP(A7, Staff!A:G,2,FALSE)

    But no idea how to make this work for the images?

    Can anyone provide any guidance?

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,946

    Re: VLOOKUP Images?

    You could use the worksheet's calculate event. With your formula above in, say, cell B7 and with pictures on the same sheet named

    FirstNameLastName

    where the formula will return FirstName LastName

    1) Copy this code.
    2) Right-Click the sheet tab of interest.
    3) Select "View Code"
    4) Paste the code into the window that appears.
    5) Save the file as a macro-enabled .xlsm file.
    6) Make changes as needed

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    12-05-2019
    Location
    Liverpool, England
    MS-Off Ver
    365
    Posts
    4

    Re: VLOOKUP Images?

    Thanks, but unfortunately I think this is a little beyond my skillset!

    If someone could help I can forward them a download link...

    Could somehow show me how to make this work?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: VLOOKUP Images?

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 pictures.

    Please read the yellow banner at the top of the screen. Act on its guidelines and post a SMALL sample sheet.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    12-05-2019
    Location
    Liverpool, England
    MS-Off Ver
    365
    Posts
    4

    Re: VLOOKUP Images?

    Attachment 652909
    Attachment 652910

    Images attached.

    So I am trying to get the images in E2 and F2 from the second sheet to populate the first sheet when I select the user?

    I have created a table in the second sheet called TABLE2

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: VLOOKUP Images?

    Again, please read CAREFULLY the yellow banner, to attach a sheet not a useless picture !

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: VLOOKUP Images?

    Please re-read Post 4. A picture of a sheet is non-editable. I asked for a small sample SHEET.

  8. #8
    Registered User
    Join Date
    12-05-2019
    Location
    Liverpool, England
    MS-Off Ver
    365
    Posts
    4

    Re: VLOOKUP Images?

    Please find attached
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,946

    Re: VLOOKUP Images?

    This works for Joe Bloggs and Alan Bradley - note how their pictures are named on the Staff sheet.

    My advice: use very small, compressed pictures or this will become slow.
    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)

Similar Threads

  1. VlookUp for Images in a table
    By GiuliLa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-24-2018, 06:35 AM
  2. VLookup or Match Function to Return Images
    By rjj920 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-28-2017, 11:52 PM
  3. Vlookup (but with images)
    By redJohn89 in forum Excel General
    Replies: 2
    Last Post: 07-13-2016, 02:47 AM
  4. [SOLVED] Changing images with userform and VLOOKUP? Not sure
    By Mr_Bill in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-30-2014, 02:31 AM
  5. Vlookup for Images
    By navneetvyas in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-23-2013, 05:48 AM
  6. [SOLVED] Swap images depending on text in cell (vlookup for images??)
    By ld2x07 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-06-2013, 10:32 AM
  7. VLOOKUP for Images
    By HraHuuh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-28-2012, 02:34 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