code to look for a certain character?

bdunk

Active Member
Joined
Aug 1, 2002
Messages
290
Hello all, I was wondering how I would write a function that would look in a cell for specified character and then put a value in another column whether it found it or not. Example:

I have list of email addresses in column D. I would like a '1' put in column E if a "@" is found in column D.

THanks


Bdunk
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
To go one by one (e.g. E2 checks ony if D2 has an "@"), try =--ISNUMBER(SEARCH("@",D2)) and copy down.

To have E2 check if there is a "@" *anywhere* in column D, try = --ISNUMBER(MATCH("*@*,D:D,0))
 
Upvote 0

Forum statistics

Threads
1,221,059
Messages
6,157,674
Members
451,431
Latest member
gdekker

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