Mandy_
asked on
Excel - anybody could help me to complete this competition with vlookup
Dear EE,
i've this time this formula below and is working great so far.
=IFERROR(SUBSTITUTE(SUBSTI TUTE(LOWER (RIGHT(B3; (LEN(B3))- (SEARCH(", ";B3))-1)& "."&LEFT(B 3;(SEARCH( ",";B3)-1) )&"@"&VLOO KUP(B24;A1 8:B21GUL;2 ;FALSCH)); " ";"");"/,";"");SUBSTITUTE( B3;" ";"")&"@"&VLOOKUP(B24;A18: B21;2;FALS E))
but i like 3 different smtp's in D9,D10,D11 depends on Cell B24
if B24 = GUL D9 = gul.com, D10 = gul.com D11=gul.com
if B24 = GUL2 D9 = gul.com, D10 = gul.com D11=gul.com
if B24 = GIL D9 = gul.com, D10 = gil.com D11=gul.com
if B24 = GIL2 D9 = gul.com, D10 = gil.com D11=gul.com
if B24 = LEL D9 = lel.com, D10 = leld.com D11=gel.com
Pls see picture and excel example below
SUBSTITUTE--1-.xlsx
i've this time this formula below and is working great so far.
=IFERROR(SUBSTITUTE(SUBSTI
but i like 3 different smtp's in D9,D10,D11 depends on Cell B24
if B24 = GUL D9 = gul.com, D10 = gul.com D11=gul.com
if B24 = GUL2 D9 = gul.com, D10 = gul.com D11=gul.com
if B24 = GIL D9 = gul.com, D10 = gil.com D11=gul.com
if B24 = GIL2 D9 = gul.com, D10 = gil.com D11=gul.com
if B24 = LEL D9 = lel.com, D10 = leld.com D11=gel.com
Pls see picture and excel example below
SUBSTITUTE--1-.xlsx
ASKER
Dear Glenn,
thank you, i will try that but the attachment seems to be a wrong one...
thank you, i will try that but the attachment seems to be a wrong one...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Great work. Excellent!
D9: =IFERROR(SUBSTITUTE(SUBSTI
D10: =IFERROR(SUBSTITUTE(SUBSTI
D11: =IFERROR(SUBSTITUTE(SUBSTI
Note that I did not change any of the casing for the name (i.e., upper/lower case).
I also intentionally added errors to the lookup range (=1/0...#DIV/0!) in order to force the function to return the default domain name.
Example workbook attached.
Regards,
-Glenn
EE-Formulas.xls