Excel
From DikapediaV2
Sort a Table by IP Address
- . Create a new column to the left of the IP Address column. Let's call it the Sorted column
- . Copy the IP addresses from the IP Address column to the new column (Sorted)
- . In the Sorted column, use the "find and replace" feature to remove the first three octets so that you are left with the last octet only
- . For example, it the IP addresses are "10.240.5.4", then find "10.240.5." and replace it with nothing. This will leave the "4" in the Sorted column.
- . All of the IP addresses in the Sorted column should only have the last octet now
- . Highlight the entire table, click on Data > Sort, and Sort by Sorted (column name), Sort on Cell Values, Order Smallest to Largest.
- . Voila. You can now hide or remove the Sorted column.
PivotTables
This example shows how to create a PivotTable of a Vulnerability scan spreadsheet.
- Click on the Insert tab.
- Click on Recommended PivotTables
- Select Count of Plugin Output by IP Address and Severity
- In the PivotTable Fields pane, select additional fields DNS Name and Plugin Name
- Change the Values title from "Count of Plugin Output" to "Vulnerabilities"
- Change the Column Labels title to "Count by Severity"
- (Optional) Then change the layout form of the PivotTable from Compact form to Tabular form.
- Click anywhere in the PivotTable and then select the Design tab.
- Click Report Layout and then select Show in Tabular form.
- (Optional)
- To further organize the PivotTable, highlight the IP Address column header cell again, right click, and select Field Settings.
- Go to Layout & Print and select Show item labels in outline form. Leave only the Display subtotals at the top of each group check box selected.
- Then highlight the DNS Name column header cells, right click and select Field Settings.
- Go to Layout & Print and select Show item labels in outline form. Leave only the Display subtotals at the top of each group check box selected.
- Tip: You can play with the Subtotals and determine whether you want to show it or not by going to the Design tab and playing with the options under the Subtotals drop down.