traceroute format

danicam

New Member
Joined
Aug 21, 2017
Messages
2
Hi guys.

Kindly I would like to ask you help to follow issue.
I have a command output as listed below:


ROUTER#traceroute 10.42.0.10


Type escape sequence to abort.
Tracing the route to 10.42.0.11


1 10.1.19.18 0 msec 0 msec 8 msec
2 10.1.18.18 0 msec 9 msec 0 msec
3 10.1.18.17 8 msec 9 msec 0 msec
4 10.13.169.143 0 msec 0 msec 8 msec
5 200.159.29.229 9 msec 0 msec 8 msec
6 187.93.165.109 59 msec 59 msec 59 msec
7 187.93.144.110 58 msec 58 msec 59 msec
8 1.1.1.1 58 msec 58 msec 59 msec
9 * * *
ROUTER#


My ideia is paste this code in the first columm and extract the IP address information to second colummn
Like this:

1st columm 2nd colum
1 10.1.19.18 0 msec 0 msec 8 msec 10.1.19.18
2 10.1.18.18 0 msec 9 msec 0 msec 10.1.18.18
3 10.1.18.17 8 msec 9 msec 0 msec 10.1.18.17 8
4 10.13.169.143 0 msec 0 msec 8 msec 10.13.169.143
5 200.159.29.229 9 msec 0 msec 8 msec 200.159.29.229
6 187.93.165.109 59 msec 59 msec 59 msec 187.93.165.109
7 187.93.144.110 58 msec 58 msec 59 msec 187.93.144.110
8 1.1.1.1 58 msec 58 msec 59 msec 1.1.1.1

Does anyone have any idea how to achieve it?

Thanks. Daniel
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
[Table="width:, class:grid"][tr][td="bgcolor:#C0C0C0"][/td][td="bgcolor:#C0C0C0"]
A​
[/td][td="bgcolor:#C0C0C0"]
B​
[/td][td="bgcolor:#C0C0C0"]
C​
[/td][td="bgcolor:#C0C0C0"]
D​
[/td][td="bgcolor:#C0C0C0"]
E​
[/td][td="bgcolor:#C0C0C0"]
F​
[/td][td="bgcolor:#C0C0C0"]
G​
[/td][td="bgcolor:#C0C0C0"]
H​
[/td][/tr][tr][td="bgcolor:#C0C0C0"]
1​
[/td][td]
1​
[/td][td]10.1.19.18[/td][td]
0​
[/td][td]msec[/td][td]
0​
[/td][td]msec[/td][td]
8​
[/td][td]msec[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
2​
[/td][td]
2​
[/td][td]10.1.18.18[/td][td]
0​
[/td][td]msec[/td][td]
9​
[/td][td]msec[/td][td]
0​
[/td][td]msec[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
3​
[/td][td]
3​
[/td][td]10.1.18.17[/td][td]
8​
[/td][td]msec[/td][td]
9​
[/td][td]msec[/td][td]
0​
[/td][td]msec[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
4​
[/td][td]
4​
[/td][td]10.13.169.143[/td][td]
0​
[/td][td]msec[/td][td]
0​
[/td][td]msec[/td][td]
8​
[/td][td]msec[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
5​
[/td][td]
5​
[/td][td]200.159.29.229[/td][td]
9​
[/td][td]msec[/td][td]
0​
[/td][td]msec[/td][td]
8​
[/td][td]msec[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
6​
[/td][td]
6​
[/td][td]187.93.165.109[/td][td]
59​
[/td][td]msec[/td][td]
59​
[/td][td]msec[/td][td]
59​
[/td][td]msec[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
7​
[/td][td]
7​
[/td][td]187.93.144.110[/td][td]
58​
[/td][td]msec[/td][td]
58​
[/td][td]msec[/td][td]
59​
[/td][td]msec[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
8​
[/td][td]
8​
[/td][td]1.1.1.1[/td][td]
58​
[/td][td]msec[/td][td]
58​
[/td][td]msec[/td][td]
59​
[/td][td]msec[/td][/tr]
[/table]
 
Upvote 0
[Table="width:, class:grid"][tr][td="bgcolor:#C0C0C0"][/td][td="bgcolor:#C0C0C0"]
A​
[/td][td="bgcolor:#C0C0C0"]
B​
[/td][td="bgcolor:#C0C0C0"]
C​
[/td][td="bgcolor:#C0C0C0"]
D​
[/td][td="bgcolor:#C0C0C0"]
E​
[/td][td="bgcolor:#C0C0C0"]
F​
[/td][td="bgcolor:#C0C0C0"]
G​
[/td][td="bgcolor:#C0C0C0"]
H​
[/td][/tr][tr][td="bgcolor:#C0C0C0"]
1​
[/td][td]
1​
[/td][td]10.1.19.18[/td][td]
0​
[/td][td]msec[/td][td]
0​
[/td][td]msec[/td][td]
8​
[/td][td]msec[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
2​
[/td][td]
2​
[/td][td]10.1.18.18[/td][td]
0​
[/td][td]msec[/td][td]
9​
[/td][td]msec[/td][td]
0​
[/td][td]msec[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
3​
[/td][td]
3​
[/td][td]10.1.18.17[/td][td]
8​
[/td][td]msec[/td][td]
9​
[/td][td]msec[/td][td]
0​
[/td][td]msec[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
4​
[/td][td]
4​
[/td][td]10.13.169.143[/td][td]
0​
[/td][td]msec[/td][td]
0​
[/td][td]msec[/td][td]
8​
[/td][td]msec[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
5​
[/td][td]
5​
[/td][td]200.159.29.229[/td][td]
9​
[/td][td]msec[/td][td]
0​
[/td][td]msec[/td][td]
8​
[/td][td]msec[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
6​
[/td][td]
6​
[/td][td]187.93.165.109[/td][td]
59​
[/td][td]msec[/td][td]
59​
[/td][td]msec[/td][td]
59​
[/td][td]msec[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
7​
[/td][td]
7​
[/td][td]187.93.144.110[/td][td]
58​
[/td][td]msec[/td][td]
58​
[/td][td]msec[/td][td]
59​
[/td][td]msec[/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
8​
[/td][td]
8​
[/td][td]1.1.1.1[/td][td]
58​
[/td][td]msec[/td][td]
58​
[/td][td]msec[/td][td]
59​
[/td][td]msec[/td][/tr]
[/table]
I think shg meant to tell you to use Text To Columns (Data tab, Data Tools panel on the Ribbon) using Space as the delimiter. However, for what you actually asked for, put this formula in cell B1 (assuming your first data item is in cell A1) and copy down...

=LEFT(A1,FIND(" ",A1)-1)
 
Last edited:
Upvote 0
Hey there,

Thanks for prompt reply. Unfortunately I can use the approach text to columns.
Also I've tested the the formula but didnt work. My cell still in blank.

Any suggestions?

Thanks, Daniel
 
Upvote 0
Also I've tested the the formula but didn't work. My cell still in blank.
Maybe your spaces are not true space, but rather non-breaking spaces (ASCII 160)? This could happen if you copy/paste values from the web. To test this idea, try using this formula instead...

=LEFT(A1,FIND(CHAR(160),A1)-1)
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,987
Members
452,373
Latest member
TimReeks

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top