briansterling
New Member
- Joined
- Aug 10, 2017
- Messages
- 2
So I'm migrating a multitude of workstations from one domain to another and I have a very useful program to help me with this. One of the great features is it can draw from an excel file to rename the computers in the same process which is necessary since the new domain has different naming standards than we have now. Can anyone help me understand the formula/conditional formatting necessary to produce the type of results in the example table below?
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Old Domain Name[/TD]
[TD]New Domain Name[/TD]
[/TR]
[TR]
[TD]LOC(ation)5001(item ID)[/TD]
[TD]USLOC-LT-05001[/TD]
[/TR]
[TR]
[TD]LAP5549[/TD]
[TD]USTUS-LT-05549[/TD]
[/TR]
[TR]
[TD]SUR5112[/TD]
[TD]USTUS-LT-05112[/TD]
[/TR]
[TR]
[TD]CHA2745[/TD]
[TD]USCHA-LT-02745[/TD]
[/TR]
[TR]
[TD]CAR2786[/TD]
[TD]USCAR-LT-02786[/TD]
[/TR]
</tbody>[/TABLE]
I would need a way to:
- Isolate the last 4 numbers and add a zero
- Take the first three letters and make bring them over after inserting "US"
*but not if the three letters are "LAP"
- Insert the "-LT-0" between the location and the inventory number.
With how our names are now the results are bound to be quite messy but it would save a lot of time in giving me a base-line that I can go through and make corrections after the fact. I appreciate any assistance that is provided.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Old Domain Name[/TD]
[TD]New Domain Name[/TD]
[/TR]
[TR]
[TD]LOC(ation)5001(item ID)[/TD]
[TD]USLOC-LT-05001[/TD]
[/TR]
[TR]
[TD]LAP5549[/TD]
[TD]USTUS-LT-05549[/TD]
[/TR]
[TR]
[TD]SUR5112[/TD]
[TD]USTUS-LT-05112[/TD]
[/TR]
[TR]
[TD]CHA2745[/TD]
[TD]USCHA-LT-02745[/TD]
[/TR]
[TR]
[TD]CAR2786[/TD]
[TD]USCAR-LT-02786[/TD]
[/TR]
</tbody>[/TABLE]
I would need a way to:
- Isolate the last 4 numbers and add a zero
- Take the first three letters and make bring them over after inserting "US"
*but not if the three letters are "LAP"
- Insert the "-LT-0" between the location and the inventory number.
With how our names are now the results are bound to be quite messy but it would save a lot of time in giving me a base-line that I can go through and make corrections after the fact. I appreciate any assistance that is provided.