Combine If and Hyperlink formulas?

gk141054

New Member
Joined
Jan 18, 2016
Messages
6
Hi everyone,

I have a hyperlink to setup an e-mail in a column of a table as follows:

=HYPERLINK("mailto:joebloggs@gmail.com?subject=This is an e-mail subject&body=This is the e-mail body,"Click here to e-mail Joe Bloggs")

That works fine, but the challenge is I only want the hyperlink above to show if the text in column D of the same row contains a wildcard match for certain letters, say ABC.

Can anyone guide me on the best way to do this please? Presumably an IF function but i'm not sure how to combine the two, so if anyone can answer that or suggest other options please.

Thanks in advance for all advice offered.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
=IF(ISNUMBER(SEARCH("ABC",D2)),HYPERLINK("mailto:joebloggs@gmail.com?subject=This is an e-mail subject&body=This is the e-mail body","Click here to e-mail Joe Bloggs"),"")

If you want it to be case-sensitive use FIND instead of SEARCH
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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