Hello all,
I have a workbook that is basically an export from DNS in one of my customers environments. As there's no good simple lookup / find function in MS AD DNS I'm looking to Excel 2013 for a solution.
So far what I have done is bring all the separate zone files into one excel workbook, so now my workbook has 90+ tabs in it. What I want to do is have a "Coverpage" type sheet with one cell in it that I can enter a value that I'm trying to find and then have some rows below where after the search is run the results are displayed. Hopefully I can make this a little clearer.
Lets say that I enter the value that I'm looking for into $A$5 of Sheet 1. Let's call that value "ServerDC001".
What I want to happen next is for excel to search all the other tabs in the workbook and return in rows 10 down all the corresponding rows from the other TABs. So if there were three instances of ServerDC001 found in the workbook return the contents of the entire row where the value was found to Row 10, 11, and 12. Something like: (Where there is a comma in the sample data below is a separate column.)
Row 10
5f56fb8c-3f70-436a-ba4d-00a6f05c4a18,CNAME,8/24/2016,8:00:00 AM,0:10:00,ServerDC001.domainname.com.
Row 11
@,NS,0,1:00:00,ServerDC001.domainname.com.
Row 12
ServerDC001,A,0,1:00:00,10.143.154.19
If there were 100 instances found then I want them all listed.
So you can see from the sample data that the search value can lie in one of three different columns which I guess makes things a little trickier.
What I'm hoping for at the moment is some hints and tips or pointers in the right direction to find a solution for my problem.
I've done a bit of VBA coding before and I suspect that this is where I'm going to have to go to get the solution but I'm going to need some help to get there.
Hopefully someone can point me in the right direction.
Kind regards,
Dave
I have a workbook that is basically an export from DNS in one of my customers environments. As there's no good simple lookup / find function in MS AD DNS I'm looking to Excel 2013 for a solution.
So far what I have done is bring all the separate zone files into one excel workbook, so now my workbook has 90+ tabs in it. What I want to do is have a "Coverpage" type sheet with one cell in it that I can enter a value that I'm trying to find and then have some rows below where after the search is run the results are displayed. Hopefully I can make this a little clearer.
Lets say that I enter the value that I'm looking for into $A$5 of Sheet 1. Let's call that value "ServerDC001".
What I want to happen next is for excel to search all the other tabs in the workbook and return in rows 10 down all the corresponding rows from the other TABs. So if there were three instances of ServerDC001 found in the workbook return the contents of the entire row where the value was found to Row 10, 11, and 12. Something like: (Where there is a comma in the sample data below is a separate column.)
Row 10
5f56fb8c-3f70-436a-ba4d-00a6f05c4a18,CNAME,8/24/2016,8:00:00 AM,0:10:00,ServerDC001.domainname.com.
Row 11
@,NS,0,1:00:00,ServerDC001.domainname.com.
Row 12
ServerDC001,A,0,1:00:00,10.143.154.19
If there were 100 instances found then I want them all listed.
So you can see from the sample data that the search value can lie in one of three different columns which I guess makes things a little trickier.
What I'm hoping for at the moment is some hints and tips or pointers in the right direction to find a solution for my problem.
I've done a bit of VBA coding before and I suspect that this is where I'm going to have to go to get the solution but I'm going to need some help to get there.
Hopefully someone can point me in the right direction.
Kind regards,
Dave