Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi -
I have a rather large dataset that arrived with all the dates formatted as general numbers which I can't seem to convert to a date format that is recognized by either excel or access 07 - I've tried converting to regular number then to text as well as converting to text and then to date but I can't seem to make it work. The dates are also represented in yyyymmdd format - ie, 20070105 which doesn't line up with the typical american date format. Any suggestions? Any help would be appreciated. Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
the numbers are proably in straight number format and not date format. On a
new woksheet copy this formul into cell A1. change sheet1 to the correct worksheet name. then copy this formula to the entire worksheet. see if you get the correct dates. the fomula changes a general number 20071201 to a microsoft date number. =DATE(LEFT(TEXT(sheet1!A1,"general"),4),MID(TEXT(s heet1!A1,"general"),4,2),MID(TEXT(sheet1!A1,"gener al"),7,2)) "pghio" wrote: Hi - I have a rather large dataset that arrived with all the dates formatted as general numbers which I can't seem to convert to a date format that is recognized by either excel or access 07 - I've tried converting to regular number then to text as well as converting to text and then to date but I can't seem to make it work. The dates are also represented in yyyymmdd format - ie, 20070105 which doesn't line up with the typical american date format. Any suggestions? Any help would be appreciated. Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ok - will try this and let you know. Thanks!!
"Joel" wrote: the numbers are proably in straight number format and not date format. On a new woksheet copy this formul into cell A1. change sheet1 to the correct worksheet name. then copy this formula to the entire worksheet. see if you get the correct dates. the fomula changes a general number 20071201 to a microsoft date number. =DATE(LEFT(TEXT(sheet1!A1,"general"),4),MID(TEXT(s heet1!A1,"general"),4,2),MID(TEXT(sheet1!A1,"gener al"),7,2)) "pghio" wrote: Hi - I have a rather large dataset that arrived with all the dates formatted as general numbers which I can't seem to convert to a date format that is recognized by either excel or access 07 - I've tried converting to regular number then to text as well as converting to text and then to date but I can't seem to make it work. The dates are also represented in yyyymmdd format - ie, 20070105 which doesn't line up with the typical american date format. Any suggestions? Any help would be appreciated. Thanks |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Well - I'm getting a date - but they are all the same 1/0/1900 -
"Joel" wrote: the numbers are proably in straight number format and not date format. On a new woksheet copy this formul into cell A1. change sheet1 to the correct worksheet name. then copy this formula to the entire worksheet. see if you get the correct dates. the fomula changes a general number 20071201 to a microsoft date number. =DATE(LEFT(TEXT(sheet1!A1,"general"),4),MID(TEXT(s heet1!A1,"general"),4,2),MID(TEXT(sheet1!A1,"gener al"),7,2)) "pghio" wrote: Hi - I have a rather large dataset that arrived with all the dates formatted as general numbers which I can't seem to convert to a date format that is recognized by either excel or access 07 - I've tried converting to regular number then to text as well as converting to text and then to date but I can't seem to make it work. The dates are also represented in yyyymmdd format - ie, 20070105 which doesn't line up with the typical american date format. Any suggestions? Any help would be appreciated. Thanks |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
JOEL - thanks for your help - I got it to work - tweeked the formula - a tad
but couldn't have done it without your help! Thanks so much!!!! =DATE(LEFT(TEXT(A2,"general"),4),MID(TEXT(A2,"gene ral"),5,2),MID(TEXT(A2,"general"),7,2)) where the original date in in A2 - changed 4,2 to 5,2 "pghio" wrote: Well - I'm getting a date - but they are all the same 1/0/1900 - "Joel" wrote: the numbers are proably in straight number format and not date format. On a new woksheet copy this formul into cell A1. change sheet1 to the correct worksheet name. then copy this formula to the entire worksheet. see if you get the correct dates. the fomula changes a general number 20071201 to a microsoft date number. =DATE(LEFT(TEXT(sheet1!A1,"general"),4),MID(TEXT(s heet1!A1,"general"),4,2),MID(TEXT(sheet1!A1,"gener al"),7,2)) "pghio" wrote: Hi - I have a rather large dataset that arrived with all the dates formatted as general numbers which I can't seem to convert to a date format that is recognized by either excel or access 07 - I've tried converting to regular number then to text as well as converting to text and then to date but I can't seem to make it work. The dates are also represented in yyyymmdd format - ie, 20070105 which doesn't line up with the typical american date format. Any suggestions? Any help would be appreciated. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Changing the date format on the date table in a chart | Charts and Charting in Excel | |||
column formatted to general - cells keep changing to date? | New Users to Excel | |||
general date to date format | Excel Discussion (Misc queries) | |||
Date format for general formatting | Excel Discussion (Misc queries) | |||
number keep being formatted as date | New Users to Excel |