StaffGuide: CONTENTdm Cookbook

Recipes for Metadata Entry for the University of Arkansas Libraries

Tips for Preparing Data in Spreadsheets for Conversion to Tab Delimited Text

Formatting Dates

The dates in the column “Date (YYYY-MM-DD)” must be formatted as YYYY-MM-DD.  If the dates are entered in another format (e.g., 12/31/1917), follow these steps to correct them:

  1. Select the column by clicking on its letter.
  1. Right click and choose “Format Cells.”
  1. Choose category “Date” and then under “Locale (location),” select an option that offers YYYY-MM-DD in the list of examples. (One such choice is Belarusian.)  Click “OK.”
  1. Most dates will be automatically converted. However, you will have to look for any exceptions (such as dates with month and year only) and correct them manually.
  1. When all dates have been properly formatted, copy the column values and paste them into Notepad.
  1. In Excel, again select the entire column and “Format Cells.”
  1. Choose category “Text” and click “OK.”
  1. Copy the values from Notepad and paste them back into the Excel “Date (YYYY-MM-DD)” column.

Cleaning an Entire Excel Spreadsheet

  1. First open the spreadsheet you wish to clean.
  1. Then open a new blank spreadsheet.
  1. In the new spreadsheet, highlight cell A1.
  1. Click on the “Formulas” tab and “Insert Function.” 
  1. Choose function “CLEAN.”
  1. When the “Function Arguments” window is displayed, toggle to your original spreadsheet.
  1. Place the cursor in cell A1 of your original spreadsheet and select all rows and columns (including the column headings) using the “Shift” and “Arrow” keys. Note the position of the last row and column, as you will need it in step 9 below. (Excel will display this information in the “Function Arguments” window.)  Click “OK.”
  1. Switch back to your new spreadsheet, where the formula will be displayed in cell A1. Click “Copy” to copy the formula in cell A1.
  1. Use the “Arrow” keys to select the appropriate number of rows and columns in the new spreadsheet.
  1. Click “Paste” and your spreadsheet is populated with the cleaned data.
  1. You can make edits to the original spreadsheet, and these will be reflected in the cleaned version as long as the cleaned spreadsheet is closed while you edit. The next time you open the cleaned version (with the original closed), it will simply ask you to update the data links.

 

 

6/3/14   J. Dean