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
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,214,918
Messages
6,122,249
Members
449,075
Latest member
staticfluids

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