+ Reply to Thread
Results 1 to 3 of 3

Need Macro to pull only interface number not description.

  1. #1
    Registered User
    Join Date
    01-11-2013
    Location
    Kentucky, US
    MS-Off Ver
    Excel 2007
    Posts
    4

    Need Macro to pull only interface number not description.

    Hello all,

    I am new to the forum. If this is not in the right topic please move it or ask me to repost.

    what i need is a formula or macro to pull only a specific string type. Here are the examples.
    Type of input into column e15 what i want in f15
    interface GigabitEthernet"0/1" 0/1
    interface GigabitEthernet"0/1.100" 0/1.100
    interface TenGigabitEthernet"3/1.100" l2transport 3/1.100
    interface GigabitEthernet"0/0/0/3" 0/0/0/3
    interface GigabitEthernet"1/1/1/1.1365" 1/1/1/1.1365
    interface TenGigabitEthernet"0/0/4/3" 0/0/4/3
    interface GigabitEthernet"0/1/0/3.1365" l2transport 0/1/0/3.1365



    there is no guarantee how many "/ and #'s" there are or whether or not the "l2transport" will be after it or not.

  2. #2
    Registered User
    Join Date
    01-11-2013
    Location
    Kentucky, US
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Need Macro to pull only interface number not description.

    the format didnt hold. the results for the corresponding line is as follows.
    0/1
    0/1.100
    3/1.100
    0/0/0/3
    1/1/1/1.1365
    0/0/4/3
    0/1/0/3.1365

  3. #3
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: Need Macro to pull only interface number not description.

    Its not clear from the post, can you upload a sample workbook and show expected results?
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1