Changing an Integer to an Excel Serial Number (123575)
The information in this article applies to:
- Microsoft Excel 97 for Windows
- Microsoft Excel for Windows 95
- Microsoft Excel for Windows 5.0
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q123575 SUMMARY
Many programs export dates as integers. This article contains a sample
Microsoft Visual Basic for Applications macro (Sub procedure) that
transforms an integer date to a Microsoft Excel serial number. This
example assumes that the integer date is in the active cell of the
worksheet in the form of 980812 (that is, year|month|day).
The macro can be adapted for other integer date formats by changing the
references in the DATE function.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbhowto kbProgramming KB123575 |
---|
|