if condition matches then copy till next match to new sheet under match

IMNEWTOEXCEL

New Member
Joined
Apr 26, 2018
Messages
5
Hi Excel Gurus,

below is sample data i have on column A on sheet1, on sheet2 i have headings based on interfaces from below, if there is a match then copy ip address and ipv6 address line to matched column on sheet2. this needs to be looped until the end when blank cell. There might be different number of ip or ipv6 address under the interface that is why i need to get it done this way.

interface TenGigabitEthernet0/0/0.110
ip address 1.1.1.1 255.255.255.252
ipv6 address 1970:1:0:1::2/64
interface TenGigabitEthernet0/0/1.111
ip address 2.2.2.2 255.255.255.252
ipv6 address 1971:1:0:1::2/64
interface TenGigabitEthernet0/1/0.210
ip address 3.3.3.3 255.255.255.252
ipv6 address 1972:1:0:1::2/64
interface TenGigabitEthernet0/1/1.211
ip address 4.4.4.4 255.255.255.252
ipv6 address 1973:1:0:1::2/64
interface Bundle1.11
ip address 5.5.5.5 255.255.255.252
interface Bundle1.110
ip address 6.6.6.6 255.255.240.0 secondary
ip address 7.7.7.7 255.255.240.0 secondary
ip address 8.8.8.8 255.255.255.128 secondary
ip address 9.9.9.9 255.255.255.128 secondary
ip address 10.1.1.1 255.255.255.192 secondary
ip address 10.2.2.2 255.255.255.192 secondary
ip address 10.3.3.3 255.255.255.128 secondary
ip address 10.4.4.4 255.255.192.0
ipv6 address 1974:1:0:1::2/64
interface Bundle1.12
ip address 6.6.6.6 255.255.240.0 secondary
ip address 7.7.7.7 255.255.240.0 secondary
ip address 10.4.4.4 255.255.192.0
interface Bundle1.33
ip address 7.7.7.7 255.255.240.0 secondary
ip address 10.4.4.4 255.255.192.0
interface Bundle1.9000
ip address 7.7.7.7 255.255.240.0 secondary
ip address 10.4.4.4 255.255.192.0

<tbody>
</tbody>


Thanks
imnewtoexcel
 

Some videos you may like

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Watch MrExcel Video

Forum statistics

Threads
1,099,064
Messages
5,466,380
Members
406,478
Latest member
Amar kumar

This Week's Hot Topics

Top