
Tips.Net > ExcelTips Home > Files > Use Filenames That Sort Properly
Summary: How you name your workbook files can be an important decision. This tip explains one way you can name your files so that they sort in a desired manner when displayed in dialog boxes and in Windows. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, and Excel 2003.)
It is not uncommon to work on projects that require several workbooks. When you are naming files for your project, you should use names which will later sort properly when you use various functions of Excel. For instance, the Open dialog box shows the files in the current directory. If your files are named properly, they will always appear in order on the list.
I ensure this by starting all files related to a project with a number of digits that represent the order in which the workbook appears in the project. For instance, if the project entails workbooks from the last quarter of 2005 and the first quarter of 2006, then the files may be named as follows:
200510 Actual Figures.wks 200511 Actual Figures.wks 200512 Actual Figures.wks 200601 Actual Figures.wks 200602 Actual Figures.wks 200603 Actual Figures.wks
The files sort properly because they beginning with the year. If they began with the month, then the first quarter of 2006 would sort before the last quarter of 2005, which is not nearly as helpful an order.
Tip #2233 applies to Microsoft Excel versions: 97 2000 2002 2003
Got the Time? If you work with either times or dates in Excel, you really need ExcelTips: Times and Dates. Everything you need to know about slicing, dicing, and generally working with times and dates.
Have thousands of ExcelTips at your fingertips, on your own system. Answer your own questions or help support others. (more information...)
Ask an Excel Question
Make a Comment
ExcelTips FAQ
ExcelTips Premium
Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips
Advertise on the
ExcelTips Site