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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
A​
B​
C​
D​
E​
F​
G​
H​
1​
1​
10.1.19.18
0​
msec
0​
msec
8​
msec
2​
2​
10.1.18.18
0​
msec
9​
msec
0​
msec
3​
3​
10.1.18.17
8​
msec
9​
msec
0​
msec
4​
4​
10.13.169.143
0​
msec
0​
msec
8​
msec
5​
5​
200.159.29.229
9​
msec
0​
msec
8​
msec
6​
6​
187.93.165.109
59​
msec
59​
msec
59​
msec
7​
7​
187.93.144.110
58​
msec
58​
msec
59​
msec
8​
8​
1.1.1.1
58​
msec
58​
msec
59​
msec
 
Upvote 0
A​
B​
C​
D​
E​
F​
G​
H​
1​
1​
10.1.19.18
0​
msec
0​
msec
8​
msec
2​
2​
10.1.18.18
0​
msec
9​
msec
0​
msec
3​
3​
10.1.18.17
8​
msec
9​
msec
0​
msec
4​
4​
10.13.169.143
0​
msec
0​
msec
8​
msec
5​
5​
200.159.29.229
9​
msec
0​
msec
8​
msec
6​
6​
187.93.165.109
59​
msec
59​
msec
59​
msec
7​
7​
187.93.144.110
58​
msec
58​
msec
59​
msec
8​
8​
1.1.1.1
58​
msec
58​
msec
59​
msec
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,215,734
Messages
6,126,545
Members
449,317
Latest member
chingiloum

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