LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
glwday
 
Posts: n/a
Default Combining LEFT\IF and Concatenation


One of my responsibilities is the deployment of software around our
network. I often get lists of users and their computers names but
usually not in the format I need.

For example I get

User PC
S01234 1712265
K11567 1287997
B09768 2524387

What I need is for each PC name to have it's site prefix added

User PC Prefixed Result
S01234 1712265 ST1712265
K11567 1287997 LO1287997
B09768 2524387 BS2524387

Currently I have to sort on user name and =CONCATENATE("ST",B2) copy
that down the users beginning S =CONCATENATE("LO",B3) for users
beginning and so on.

Is there a way of using LEFT so that it goes something like this
IF LEFT(A2)="S" Concatenate ("ST",B2) ELSE IF LEFT(A2)="K" Concatenate
("LO",B2) ELSE IF LEFT(A2)="B" Concatenate ("BS",B2)

Thanks in adavance


--
glwday
------------------------------------------------------------------------
glwday's Profile: http://www.excelforum.com/member.php...o&userid=32336
View this thread: http://www.excelforum.com/showthread...hreadid=520976

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"