I need help writing a complex equation.

D

drummer07

I have three columns that I want to draw data from combine it into a single
line of data in another columns. So here’s the scenario.

Column 1 has an employee # there’s two designations 01XXXX and 02XXXX.
This is important. More on the importance of that later.

Column 2 has First name

Column 3 has Last name pretty simple.

So basically what I need to happen is, what I believe to be a simple
combination / complex if statement.

The Final column would look like this. [email protected]


That’s why 01xxxx and 02xxxx are so important 01 means alaskaair.com 02 mean
horizonair.com

Help!

-jeremy-
[email protected]
[email protected]
 
P

PCLIVE

=B1&"."&C1&"@"&IF(A1="01XXXX","alaskaair.com","horizonair.com")

If you want the result to be a link:

=HYPERLINK(B1&"."&C1&"@"&IF(A1="01XXXX","alaskaair.com","horizonair.com"))

HTH,
Paul
 
G

Gary''s Student

In column D:
=HYPERLINK("mailto:" &
B1&"."&C1&"@"&IF(LEFT(A1,2)="01","alaskaair.com","horizonair.com"))
 
M

Mike H

with the data laid out as described in A1, b1 & c1 try this in d1 and drag down

=B1&"."&C1&"@"&IF(LEFT(A1,2)="01","alaskaair","horizonair")

Mike
 
J

Jim Thomlinson

something like this should do with data in cells a2, b2 and c2...

=B2& "." & C2 & IF(LEFT(A2, 2) = "01", "@alaskaair.com", "@horizonair.com")
 
F

FSt1

hi
play with this.....
=IF(LEFT(A2,2)="01",B2&C2&"@"&"alaskaair.com",B2&C2&"@"&"horizon.com")

regards
FSt1
 
Top