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.
 
Hi Arctic,

Its returning a false value - the formula needs to address the issue IF it CONTAINS those letters....;). I believe your formula is assuming D2 = IGI, GIA, HRD, or EGL, which is not the case. D2 Contains other characters.
 
Upvote 0

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
<table style="width: 463px; height: 235px;" border="0" cellpadding="0" cellspacing="0"><col style="mso-width-source:userset;mso-width-alt:14884;width:305pt" width="407"> <tbody><tr style="height:12.75pt" height="17"> <td style="height:12.75pt;width:305pt" width="407" height="17">1.04 CT ROUND I SI2 GIA CERTIFIED LOOSE DIAMOND</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">1.05 CT ROUND D IF GIA CERTIFIED LOOSE DIAMOND</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">1.05 CT ROUND D VVS1 GIA CERTIFIED LOOSE DIAMOND</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">1.05 CT ROUND D VVS2 GIA CERTIFIED LOOSE DIAMOND</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">1.05 CT ROUND D VS1 GIA CERTIFIED LOOSE DIAMOND</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">1.05 CT ROUND D VS1 EGL CERTIFIED LOOSE DIAMOND</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">1.05 CT ROUND D VS2 GIA CERTIFIED LOOSE DIAMOND</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">1.05 CT ROUND D VS2 GIA CERTIFIED LOOSE DIAMOND</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">1.05 CT ROUND D VS2 GIA CERTIFIED LOOSE DIAMOND</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">1.05 CT ROUND D SI1 EGL CERTIFIED LOOSE DIAMOND</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" height="17">1.05 CT ROUND D SI1 EGL CERTIFIED LOOSE DIAMOND</td> </tr> </tbody></table>
 
Upvote 0
This should work

HTML:
=IF(MID(D2,FIND("IGI",D2),3)="IGI","http://i536.photobucket.com/albums/ff323/IGMEEGIN/igicert.jpg",IF(MID(D2,FIND("EGL",D2),3)="EGL","http://i536.photobucket.com/albums/ff323/IGMEEGIN/igicert.jpg",IF(MID(D2,FIND("GIA",D2),3)="GIA","http://i536.photobucket.com/albums/ff323/IGMEEGIN/Giacert.jpg",IF(MID(D2,FIND("HRD",D2),3)="HRD","http://i536.photobucket.com/albums/ff323/IGMEEGIN/hrdcert.jpg",""))))

Arctic
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,703
Members
452,938
Latest member
babeneker

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