I have a spreadsheet with names and addresses. The spreadsheet is initially arranged by zip code (In the attached, the column is called Property Zip) (there is also a Mailing zip, but I am ignoring that)
Basically what I want to do is to be able to select a block of rows and sort that block by (in this case, by the Square footage column.
For example, in the attached sheet I have 3 zip code rows in the Property Zip column 90064, 90066 and 90402
First I want to be able to select the 90064 rows, and sort those rows by the Square Footage column. (and not affect any other rows in other zip codes, of course -- that is why I am selecting the 90064 rows). :)
Then I want to select the 90066 rows and sort those rows by the Square footage column.
Finally I want to select the 90402 rows and sort those rows by the Square footage column.)
In summary -- I know how to sort, but I don't know how to sort within a row selection -- and not affect any other row(s) that are not selected.
Any suggestions? The attached is a small file, but I have much bigger files that I have to do this with.
1) Convert the entire sheet into a table. Looks like it is named the default Table 1. Remind me how to convert a spreadsheet into a table.
2) You created a custom sort. I know how to do a custom sort by two columns manually, but it looks like you built the two column sort that into the table.
Can you explain how you built in that custom sort
Then I will be able to use your solution on other similarly structured excel sheets.
Thanks!!
Rowby
duttcom
To convert to a table-
Select the entire block of data, column headers and all. Go to the Insert tab where you will see a Table button. Click that.
You will be asked to confirm the range of cells for the table and if the range you have selected includes headers. Click okay and the data range will be converted to a table.
To do the custom sort, as I mention above, you can right-click on one of the column headers and choose Sort -> Custom sort and then replicate the sort settings in the example. You will see at the top of the custom sort dialog that you can add different levels of sorting.
You can also filter the records in a table by clicking on the arrows in the column headings and selecting which records you wish to view or filter out.
Rowby Goren
ASKER
Got it! I will be back at the office in the a.m. and will do the table and short.
The reason (I assume) I need a custom sort is I need to sort within zip codes.
Main sort - zip code then square footage.
I will be trying it this morning on a big file -- so we can see if it the custom sort takes care of my issue.
Rob Henson
Multiple sort levels only sort within the group.
Level 1 sorts whole data set, subsequent levels sort within the level 1 groups.
Rowby Goren
ASKER
Hi
Sorting it via multiple sort seemed to do the trick. You can see the attached.....
Is there anything else I need to know?
BTW I have done multiple sorts before, but not applied to a table. Can you explain the advantages, in mutlple-sorts, with using a table compared to just ordinary multiple sorts in this particular spreadsheet???
Thanks for helping.
Looks good. So the steps I would take is to
1) Convert the entire sheet into a table. Looks like it is named the default Table 1. Remind me how to convert a spreadsheet into a table.
2) You created a custom sort. I know how to do a custom sort by two columns manually, but it looks like you built the two column sort that into the table.
Can you explain how you built in that custom sort
Then I will be able to use your solution on other similarly structured excel sheets.
Thanks!!
Rowby