+ Reply to Thread
Results 1 to 3 of 3

IF Statement to place images/pictures

  1. #1
    Registered User
    Join Date
    05-12-2014
    MS-Off Ver
    Excel 2003
    Posts
    4

    IF Statement to place images/pictures

    I am completely stumped and spent over 20 hours trying to figure out this problem. There are a ton of examples on the net on how to do this using code, not using code, etc. I have attached the sample of what I have been able to do so far.

    In this example I have used the non code approach. Using Name Lists to assign pictures, I was able to get this to work, the problem is that I would have to create hundreds of name lists to get it to work on all cells, unless I'm missing something.
    If you look at Column C - I basically want to assign a picture instead of the word relating to the color in Column A. As you can see in the sample I was able to get this to work, but as I mentioned I would have to literally create hundreds of lists to do it across Column A,D,F,H, etc. I'm sure you get the point. I actually started doing this, if you look at the name lists. Then I thought, there has to be an easier way to do this.

    So, here I am asking for help.

    Thanks all,

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: IF Statement to place images/pictures

    I suggest conditional formatting to do your coloring.

    Excel 2003 doesn't support format-by-color-scale, so I've done examples "color when cell contains value" rules on E2:E31.

    You can offset the test range if you want like a little "O" as like a traffic sign (maybe the filled-in dot from the wingdings font) and color that too; you can even wrap it with an IF(score=good, "O", "") to error-test for blank or out or range values or something as well. I've demonstrated that in column H (I inserted a new colmn between GM% code and the CMSR column).

    Anyway, I feel like conditional formatting with some clever font use will deliver what you want much more easily.

    ...And you can do it without VBA, too.

  3. #3
    Registered User
    Join Date
    05-12-2014
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: IF Statement to place images/pictures

    This totally works great. Thank you for the help.

+ 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. Insert Images/Pictures for an IF Function
    By kibbles in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-26-2013, 11:45 PM
  2. Pictures shift to another place entirely when a row is deleted
    By shamade2107 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-24-2009, 11:58 PM
  3. place images automatically in xcell
    By verena in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-10-2009, 09:28 AM
  4. Place Images Behind Cells/Text
    By SambaGaz in forum Excel General
    Replies: 3
    Last Post: 10-06-2008, 11:51 AM
  5. Pictures/Images move and distort
    By mmetzler in forum Excel General
    Replies: 0
    Last Post: 06-28-2007, 10:52 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