adamhodgkins
New Member
- Joined
- Feb 22, 2013
- Messages
- 3
Hi all,
I have been given a task to transfer some data from one spreadsheet to another, but I'm struggling to find a formula to help with it...
The data I have to transfer is in the following format:
[TABLE="width: 360"]
<TBODY>[TR]
[TD]Server Name</SPAN>[/TD]
[TD]IP Address</SPAN>[/TD]
[TD]Area</SPAN>[/TD]
[/TR]
[TR]
[TD]Server A</SPAN>[/TD]
[TD]1.1.1.1</SPAN>[/TD]
[TD]Production</SPAN>[/TD]
[/TR]
[TR]
[TD]Server A</SPAN>[/TD]
[TD]2.2.2.2</SPAN>[/TD]
[TD]Development</SPAN>[/TD]
[/TR]
[TR]
[TD]Server A</SPAN>[/TD]
[TD]3.3.3.3</SPAN>[/TD]
[TD]Testing</SPAN>[/TD]
[/TR]
[TR]
[TD]Server B</SPAN>[/TD]
[TD]4.4.4.4</SPAN>[/TD]
[TD]Production</SPAN>[/TD]
[/TR]
[TR]
[TD]Server B</SPAN>[/TD]
[TD]5.5.5.5</SPAN>[/TD]
[TD]Production</SPAN>[/TD]
[/TR]
[TR]
[TD]Server B</SPAN>[/TD]
[TD]6.6.6.6</SPAN>[/TD]
[TD]Testing</SPAN>[/TD]
[/TR]
[TR]
[TD]Server C</SPAN>[/TD]
[TD]7.7.7.7</SPAN>[/TD]
[TD]Development</SPAN>[/TD]
[/TR]
[TR]
[TD]Server C</SPAN>[/TD]
[TD]8.8.8.8</SPAN>[/TD]
[TD]Testing</SPAN>[/TD]
[/TR]
[TR]
[TD]Server C</SPAN>[/TD]
[TD]9.9.9.9</SPAN>[/TD]
[TD]Production</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL><COL span=2></COLGROUP>[/TABLE]
The spreadsheet that needs this information adding to is in a different format:
[TABLE="width: 819"]
<TBODY>[TR]
[TD]Server Name</SPAN>[/TD]
[TD]IP Address 1</SPAN>[/TD]
[TD]Area 1</SPAN>[/TD]
[TD]IP Address 2</SPAN>[/TD]
[TD]Area 2</SPAN>[/TD]
[TD]IP Address 3</SPAN>[/TD]
[TD]Area 3</SPAN>[/TD]
[/TR]
[TR]
[TD]Server A</SPAN>[/TD]
[TD]1.1.1.1</SPAN>[/TD]
[TD]Production</SPAN>[/TD]
[TD]2.2.2.2</SPAN>[/TD]
[TD]Development</SPAN>[/TD]
[TD]3.3.3.3</SPAN>[/TD]
[TD]Testing</SPAN>[/TD]
[/TR]
[TR]
[TD]Server B</SPAN>[/TD]
[TD]4.4.4.4</SPAN>[/TD]
[TD]Production</SPAN>[/TD]
[TD]5.5.5.5</SPAN>[/TD]
[TD]Production</SPAN>[/TD]
[TD]6.6.6.6</SPAN>[/TD]
[TD]Testing</SPAN>[/TD]
[/TR]
[TR]
[TD]Server C</SPAN>[/TD]
[TD]7.7.7.7</SPAN>[/TD]
[TD]Development</SPAN>[/TD]
[TD]8.8.8.8</SPAN>[/TD]
[TD]Testing</SPAN>[/TD]
[TD]9.9.9.9</SPAN>[/TD]
[TD]Production</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL><COL span=6></COLGROUP>[/TABLE]
If it was only a few entries I'd be happy to do it manually, but there are just under 15,000 rows of data that need to be transferred so I'd like to try and automate this if at all possible?
I've tried using VLOOKUP but that will stop when it finds the first instance of 'Server Name' and not capture the other information listed.
Any help with this would be greatly appreciated!
Thanks
Adam
I have been given a task to transfer some data from one spreadsheet to another, but I'm struggling to find a formula to help with it...
The data I have to transfer is in the following format:
[TABLE="width: 360"]
<TBODY>[TR]
[TD]Server Name</SPAN>[/TD]
[TD]IP Address</SPAN>[/TD]
[TD]Area</SPAN>[/TD]
[/TR]
[TR]
[TD]Server A</SPAN>[/TD]
[TD]1.1.1.1</SPAN>[/TD]
[TD]Production</SPAN>[/TD]
[/TR]
[TR]
[TD]Server A</SPAN>[/TD]
[TD]2.2.2.2</SPAN>[/TD]
[TD]Development</SPAN>[/TD]
[/TR]
[TR]
[TD]Server A</SPAN>[/TD]
[TD]3.3.3.3</SPAN>[/TD]
[TD]Testing</SPAN>[/TD]
[/TR]
[TR]
[TD]Server B</SPAN>[/TD]
[TD]4.4.4.4</SPAN>[/TD]
[TD]Production</SPAN>[/TD]
[/TR]
[TR]
[TD]Server B</SPAN>[/TD]
[TD]5.5.5.5</SPAN>[/TD]
[TD]Production</SPAN>[/TD]
[/TR]
[TR]
[TD]Server B</SPAN>[/TD]
[TD]6.6.6.6</SPAN>[/TD]
[TD]Testing</SPAN>[/TD]
[/TR]
[TR]
[TD]Server C</SPAN>[/TD]
[TD]7.7.7.7</SPAN>[/TD]
[TD]Development</SPAN>[/TD]
[/TR]
[TR]
[TD]Server C</SPAN>[/TD]
[TD]8.8.8.8</SPAN>[/TD]
[TD]Testing</SPAN>[/TD]
[/TR]
[TR]
[TD]Server C</SPAN>[/TD]
[TD]9.9.9.9</SPAN>[/TD]
[TD]Production</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL><COL span=2></COLGROUP>[/TABLE]
The spreadsheet that needs this information adding to is in a different format:
[TABLE="width: 819"]
<TBODY>[TR]
[TD]Server Name</SPAN>[/TD]
[TD]IP Address 1</SPAN>[/TD]
[TD]Area 1</SPAN>[/TD]
[TD]IP Address 2</SPAN>[/TD]
[TD]Area 2</SPAN>[/TD]
[TD]IP Address 3</SPAN>[/TD]
[TD]Area 3</SPAN>[/TD]
[/TR]
[TR]
[TD]Server A</SPAN>[/TD]
[TD]1.1.1.1</SPAN>[/TD]
[TD]Production</SPAN>[/TD]
[TD]2.2.2.2</SPAN>[/TD]
[TD]Development</SPAN>[/TD]
[TD]3.3.3.3</SPAN>[/TD]
[TD]Testing</SPAN>[/TD]
[/TR]
[TR]
[TD]Server B</SPAN>[/TD]
[TD]4.4.4.4</SPAN>[/TD]
[TD]Production</SPAN>[/TD]
[TD]5.5.5.5</SPAN>[/TD]
[TD]Production</SPAN>[/TD]
[TD]6.6.6.6</SPAN>[/TD]
[TD]Testing</SPAN>[/TD]
[/TR]
[TR]
[TD]Server C</SPAN>[/TD]
[TD]7.7.7.7</SPAN>[/TD]
[TD]Development</SPAN>[/TD]
[TD]8.8.8.8</SPAN>[/TD]
[TD]Testing</SPAN>[/TD]
[TD]9.9.9.9</SPAN>[/TD]
[TD]Production</SPAN>[/TD]
[/TR]
</TBODY><COLGROUP><COL><COL span=6></COLGROUP>[/TABLE]
If it was only a few entries I'd be happy to do it manually, but there are just under 15,000 rows of data that need to be transferred so I'd like to try and automate this if at all possible?
I've tried using VLOOKUP but that will stop when it finds the first instance of 'Server Name' and not capture the other information listed.
Any help with this would be greatly appreciated!
Thanks
Adam