inserting images in Excel, just wondering

merlin_the_magician

Active Member
Joined
Jul 31, 2002
Messages
480
Probably a very dumb idea, but i was just wondering... :roll: would it be at all possible, to insert different images in excel, depending on a value?

Example:
If cell A1 contains value "10" insert image c:\image 12
If cell A1 contains value "20" insert image c:\image 15
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Don't know about inserting images but perhapsyou could try a hyperlink?

=IF(A1=10,HYPERLINK("c:\image 12.jpg", "Image 12"),HYPERLINK("c:\image 15.jpg", "Image 15"))
 
Upvote 0
Works for me - does the file you referenced in your formula exist and if so is the filename spelt correctly
 
Upvote 0
Refixed it to work with continental like this:

=IF(A1=10;HYPERLINK("c:\image 12.jpg"; "Image 12");HYPERLINK("c:\image 15.jpg"; "Image 15"))

images are in the right path, and names are correctly spelled. Still get the #NAME? thing... :(
 
Upvote 0
Having searched the xl help file on #NAME? it says causes can be

  • Misspelling the name of a function (is HYPERLINK something else in the Dutch edition of xl?)
  • Misspelling the name
  • Deleting a name used in the formula, or using a name that does not exist
  • etc.

so I'm a bit stuck for ideas now
 
Upvote 0
Stupid, stupid, stupid....

IF needs to be altered into ALS (Dutch)....

One more thing... imagine i have, let's say 25 images i want to link to through 25 different possible numbers in cell A1, do i just need to create a huge formula referring to all these images, or is there an easy way?
 
Upvote 0
IF needs to be altered into ALS (Dutch)....

Perhaps I should have known that too - my girlfriend is Dutch!

Any way with IF (or ALS) there is a limit of seven nested statements - perhaps someone could help with a VLOOKUP (or Dutch equivalent)?
 
Upvote 0
shame on you....! :D :D

Hmm... i remember something like that yes... i'll try and figure out a formula using "substitute" or something.

Thanx!
 
Upvote 0
Possible solution

I've sent you a PM but just to make sure drop me an e-mail to get your e-maill address to chrisjchattin(at)yahoo.co.uk - replace (at) with the symbol
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,930
Members
452,367
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top