Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 262
Default change the century

I have pulled into Excel a lot of information from a database, unfortunately
the database has only 2 characters for the year in a date field do people are
having their dates of birth set as 24th June 2047

How can I correct this in Excel?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default change the century

How is the cell formatted? When I enter 6/24/47, I get June 24, 1947 returned.

Dave
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"Keith" wrote:

I have pulled into Excel a lot of information from a database, unfortunately
the database has only 2 characters for the year in a date field do people are
having their dates of birth set as 24th June 2047

How can I correct this in Excel?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 262
Default change the century

When I input a date manually is is correct but when it is pulled in from a
database using a Query it's wrong.

"Dave F" wrote:

How is the cell formatted? When I enter 6/24/47, I get June 24, 1947 returned.

Dave
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"Keith" wrote:

I have pulled into Excel a lot of information from a database, unfortunately
the database has only 2 characters for the year in a date field do people are
having their dates of birth set as 24th June 2047

How can I correct this in Excel?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default change the century

Can you modify the query to spell out the full four digit year? What is the
SQL you're using?

Dave
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"Keith" wrote:

When I input a date manually is is correct but when it is pulled in from a
database using a Query it's wrong.

"Dave F" wrote:

How is the cell formatted? When I enter 6/24/47, I get June 24, 1947 returned.

Dave
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"Keith" wrote:

I have pulled into Excel a lot of information from a database, unfortunately
the database has only 2 characters for the year in a date field do people are
having their dates of birth set as 24th June 2047

How can I correct this in Excel?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default change the century

It's probably because it is seen as text, what happens if you format a cell
with those dates as general?
If it is a number it should return 53867

Regards,

Peo Sjoblom


"Keith" wrote in message
...
When I input a date manually is is correct but when it is pulled in from a
database using a Query it's wrong.

"Dave F" wrote:

How is the cell formatted? When I enter 6/24/47, I get June 24, 1947
returned.

Dave
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"Keith" wrote:

I have pulled into Excel a lot of information from a database,
unfortunately
the database has only 2 characters for the year in a date field do
people are
having their dates of birth set as 24th June 2047

How can I correct this in Excel?





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default change the century

Keith

Might help if you go into Regional Settings in Control Panel and change the
ending year for the century under CustomizeDate "Interpret 2-digit years as
between"

Maybe back to 2030 or similar. Windows default is 2029.


Gord Dibben MS Excel MVP

On Tue, 3 Apr 2007 07:56:08 -0700, Keith
wrote:

I have pulled into Excel a lot of information from a database, unfortunately
the database has only 2 characters for the year in a date field do people are
having their dates of birth set as 24th June 2047

How can I correct this in Excel?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel bar chart formatting of bars to change colors as data change JudyT Excel Discussion (Misc queries) 1 January 24th 07 06:07 PM
Problem with sorting 19th century dates Robert Judge Excel Worksheet Functions 2 January 8th 07 02:17 AM
Use date modified to change format & create filter to track change PAR Excel Worksheet Functions 0 November 15th 06 09:17 PM
How can I determine the century of a date in Excel? Robin Excel Worksheet Functions 8 May 27th 05 06:09 PM
Change workbook sheet reference using cell A1 to change a vairable Reed Excel Worksheet Functions 4 January 20th 05 07:15 PM


All times are GMT +1. The time now is 05:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"