+ Reply to Thread
Results 1 to 16 of 16

Display Image Based on Excel Formula

  1. #1
    Registered User
    Join Date
    10-29-2013
    Location
    Maryland
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2305 Build 16.0.16501.20074) 64-bit
    Posts
    54

    Display Image Based on Excel Formula

    Hello Everybody,

    I want to be able to display a picture based on a part number in excel. I have already figured out how to do it using a drop down list of part numbers for one picture at a time.

    I want to be able to display several pictures.

    I have a list of part numbers vertically and want to show the corresponding pictures next to each cell to the right of the part number.

    Anybody have any idea?

    Thanks

    Mrichard

  2. #2
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2503
    Posts
    1,485

    Re: Display Image Based on Excel Formula

    What version of Excel are you using currently?
    If things don't change they stay the same

  3. #3
    Registered User
    Join Date
    10-29-2013
    Location
    Maryland
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2305 Build 16.0.16501.20074) 64-bit
    Posts
    54

    Re: Display Image Based on Excel Formula

    This is the version I have:

    Microsoft® Excel® for Microsoft 365 MSO (Version 2305 Build 16.0.16501.20074) 64-bit

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,792

    Re: Display Image Based on Excel Formula

    Please update your forum profile with that version (your profile says Excel 2013).
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    10-29-2013
    Location
    Maryland
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2305 Build 16.0.16501.20074) 64-bit
    Posts
    54

    Re: Display Image Based on Excel Formula

    My apologies. I just updated my profile.

    Mark

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,792

    Re: Display Image Based on Excel Formula

    Thank you.

  7. #7
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2503
    Posts
    1,485

    Re: Display Image Based on Excel Formula

    Are your images on a local drive or hosted online?

    The reason i ask about them being hosted online is because in some of the newer versions of 365 (not sure exactly which) there is a new function called: IMAGE

    This function allows you to display an image in a cell based on a link, if you have the function then the below should display a picture of a cheese sandwich in the cell you place the formula in:

    =IMAGE("https://static.toiimg.com/thumb/60059234.cms?width=1200&height=900",,1)

    So you could place your images online and use the above formula to display them.

    There are other methods to do it but i quite like the new in cell image function.

  8. #8
    Registered User
    Join Date
    10-29-2013
    Location
    Maryland
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2305 Build 16.0.16501.20074) 64-bit
    Posts
    54

    Re: Display Image Based on Excel Formula

    My images are in my excel workbook. I have them in a picture library. I have the part number and images next to each other vertically.

    So I have a spreadsheet that automatically inserts the part numbers vertically in a different spreadsheet and I want to show the image for each part number in the cell next to the part numbers vertically.
    The part numbers will change based on selections made in that spreadsheet. So when a different part number is selected I want the image to show next to it.

    Make sense?

  9. #9
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2503
    Posts
    1,485

    Re: Display Image Based on Excel Formula

    It does, thats why I suggested post 7.

    If the pictures could be hosted online somewhere with the filename as the part number then you could potentially use the formula in post 7.

    It would also depend on whether you have access to he IMAGE function. Does the formula in post 7 display a picture or an error?

    If you don't want to/ can't host the pictures online then it would be VBA you need and not a formula. This post has been osted in the formula section of this forum.
    Last edited by CheeseSandwich; 07-14-2023 at 07:20 AM.

  10. #10
    Registered User
    Join Date
    10-29-2013
    Location
    Maryland
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2305 Build 16.0.16501.20074) 64-bit
    Posts
    54

    Re: Display Image Based on Excel Formula

    The formula did work. I can see the sandwich. Maybe I can figure out a way to host the pictures online. I don't want to use VBA.

  11. #11
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2503
    Posts
    1,485

    Re: Display Image Based on Excel Formula

    If you can host them online, I can help you with the formula to display them if you need it.

    Might be a good idea to start off with a select few images for testing, name the files as the part numbers that you say you have listed already.

  12. #12
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2503
    Posts
    1,485

    Re: Display Image Based on Excel Formula

    Seems to work with: https://imgbb.com/

    I think if you sign up you can upload albums.

  13. #13
    Registered User
    Join Date
    10-29-2013
    Location
    Maryland
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2305 Build 16.0.16501.20074) 64-bit
    Posts
    54

    Re: Display Image Based on Excel Formula

    Thanks for the offer, I may take you up on it.

    Let me do some research and I will get back to you.

    Many thanks

    Mark

  14. #14
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,943

    Re: Display Image Based on Excel Formula

    Maybe you can adapt the approach described here: https://exceloffthegrid.com/automati...hange-picture/

    If you can, you should be able to use the pictures you have.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  15. #15
    Registered User
    Join Date
    10-29-2013
    Location
    Maryland
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2305 Build 16.0.16501.20074) 64-bit
    Posts
    54

    Re: Display Image Based on Excel Formula

    Ok I will check it out.

    Thanks again

  16. #16
    Registered User
    Join Date
    10-29-2013
    Location
    Maryland
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2305 Build 16.0.16501.20074) 64-bit
    Posts
    54

    Re: Display Image Based on Excel Formula

    I will probably have time to check it out this week.

    Again thanks

+ 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. display image based on hyperlink
    By chriswrcg in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-23-2022, 02:40 PM
  2. Display Image based on value of cell being zero
    By BirdtheYounger in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-11-2020, 03:04 PM
  3. Display an image based on a cell's value?
    By proepert in forum Excel General
    Replies: 8
    Last Post: 11-06-2014, 03:39 PM
  4. Image display on cell based on number value (MAC)
    By jc83ph in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 10-02-2014, 05:37 AM
  5. Display an image based on a cell's value in 2007
    By Ashurk77 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-06-2013, 10:48 AM
  6. Display image, from file, based on a cell value
    By Static Cat in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-13-2013, 06:45 AM
  7. Display Image Based On Image Name In Cell
    By processchip in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2011, 10:11 AM

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