zel,
You can use the following macro to accomplish what you requested:
Notes about the macro:- To change which column the dates are stored in, change DateCol to the correct column letter (right now macro assumes they are in column A)
- To change which row the dates start in, change DateRow to the correct row number (right now macro assumes the dates start in row 1)
To add a macro to a workbook:- Save a copy of the Excel workbook you want to modify
- Always test macros in a copy so that the original is preserved in case the modifications don't go smoothly
- Open the copy of the Excel workbook you want to modify
- Use the keyboard shortcut ALT+F11 to open the Visual Basic Editor
- Insert -> Module
- Copy/Paste the code into that area
To run a macro in a workbook:- In Excel 2007, go to the View tab in the ribbon
- On the far right, click Macros
- Double-click the desired macro (I named this one EvaluateDates)
Hope that helps,
~tigeravatar
Bookmarks