Jump to content


Excel Formula


1 reply to this topic

#1 b00g3R

    Young Padawan

  • Members
  • Pip
  • 81 posts
  • Gender:Male
  • Location:Chicago, IL, USA

Posted 28 February 2008 - 05:24 PM

What i want to do is look in a cell and see if there is an @ in it and to unput another cell saying Email..

Ex,

C1 has "name@whatever.com"
then in C2 it says "Email"
and if in C1 doesnt have that "@" then return saying "other"

now my formula is part right but obviously needs work..

=IF(C4="@","Email","Other")

now thats part right cuz it says other but obviously i need it to check the whole cell for any character with "@" i guess..

Please help!

Edit:
I found a way that works..

=IF(ISNUMBER(SEARCH("@",C4)),"Email", "Other")

if you have another way just let me know. Thx

Edited by b00g3R, 28 February 2008 - 05:38 PM.


#2 Scythar

    Honored X Staff

  • Members
  • PipPipPipPip
  • 1,888 posts
  • Gender:Male
  • Location:Antwerp (Belgium)

Posted 29 February 2008 - 07:43 AM

right,
its possible with little detour:
(beware my functions are in dutch and i dunno the equivalent, but ill try to translate)

function:
=ALS(ALS.FOUT(VIND.ALLES("@";A1;1);"other")="other";"other";"e-mail")

ALS = IF
ALS.FOUT = IF.ERROR (i guess??), this function looks at a result and if the result is a error, he replaces it with the value you put in the second part, in this case "other".
VIND.ALLES = FIND.ALL (i guess again :) ); this function looks at a text (here in cell A1) and searches for a specific item (here being "@"), the possible results are the place where he finds the letter, or if he didnt find it he give a #value error.

this was then nested in a IF function.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users