help with simple if then formula

IGinc

Board Regular
Joined
Jun 14, 2009
Messages
148
Criteria:

If D contains

IGI then M = < img src="http://i536.photobucket.com/albums/ff323/IGMEEGIN/igicert.jpg" >
EGL then M = < img src="http://i536.photobucket.com/albums/ff323/IGMEEGIN/eglcert.jpg" >
GIA then M = < img src="http://i536.photobucket.com/albums/ff323/IGMEEGIN/Giacert.jpg" >
HRD then M = < img src="http://i536.photobucket.com/albums/ff323/IGMEEGIN/hrdcert.jpg" >

A formula is fine, I can copy, paste special, and be done, thanks.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Asuming your staring in row 2 put this in M2
[noparse]
Code:
=IF(D2="IGI","<img src"&CHAR(61)&CHAR(34)&"http://i536.photobucket.com/albums/ff323/IGMEEGIN/igicert.jpg"&CHAR(34)&">",IF(D2="EGL","<img src"&CHAR(61)&CHAR(34)&"http://i536.photobucket.com/albums/ff323/IGMEEGIN/igicert.jpg"&CHAR(34)&">",IF(D2="GIA","<img src"&CHAR(61)&CHAR(34)&"http://i536.photobucket.com/albums/ff323/IGMEEGIN/Giacert.jpg"&CHAR(34)&">",IF(D2="HRD","<img src"&CHAR(61)&CHAR(34)&"http://i536.photobucket.com/albums/ff323/IGMEEGIN/hrdcert.jpg"&CHAR(34)&">",""))))
 
Upvote 0
its removing the links when i post lol, i'll find a way
HTML:
=IF(D2="IGI","<img src"&CHAR(61)&CHAR(34)&"http://i536.photobucket.com/albums/ff323/IGMEEGIN/igicert.jpg"&CHAR(34)&">",IF(D2="EGL","<img src"&CHAR(61)&CHAR(34)&"http://i536.photobucket.com/albums/ff323/IGMEEGIN/igicert.jpg"&CHAR(34)&">",IF(D2="GIA","<img src"&CHAR(61)&CHAR(34)&"http://i536.photobucket.com/albums/ff323/IGMEEGIN/Giacert.jpg"&CHAR(34)&">",IF(D2="HRD","<img src"&CHAR(61)&CHAR(34)&"http://i536.photobucket.com/albums/ff323/IGMEEGIN/hrdcert.jpg"&CHAR(34)&">",""))))
 
Upvote 0
Char im assuming is character count? I just realized it should only contain the basic URL...... can I use the same code w/o having to change the Char Value?

Thanks.
 
Upvote 0
Should be just:

IGI then M = http://i536.photobucket.com/albums/ff323/IGMEEGIN/igicert.jpg

EGL then M = http://i536.photobucket.com/albums/ff323/IGMEEGIN/eglcert.jpg
GIA then M = http://i536.photobucket.com/albums/ff323/IGMEEGIN/Giacert.jpg
HRD then M = http://i536.photobucket.com/albums/ff323/IGMEEGIN/hrdcert.jpg
 
Upvote 0
HTML:
=IF(D2="IGI","http://i536.photobucket.com/albums/ff323/IGMEEGIN/igicert.jpg",IF(D2="EGL","http://i536.photobucket.com/albums/ff323/IGMEEGIN/igicert.jpg",IF(D2="GIA","http://i536.photobucket.com/albums/ff323/IGMEEGIN/Giacert.jpg",IF(D2="HRD","http://i536.photobucket.com/albums/ff323/IGMEEGIN/hrdcert.jpg,""))))
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,673
Members
452,937
Latest member
Bhg1984

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