Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-04-2012, 06:26 AM
lyngio lyngio is offline Date formating problem in EXCEL 2003 Windows XP Date formating problem in EXCEL 2003 Office 2003
Novice
Date formating problem in EXCEL 2003
 
Join Date: Jan 2012
Posts: 6
lyngio is on a distinguished road
Exclamation Date formating problem in EXCEL 2003

Hi all,
I am experiencing an issue with date formatting in EXCEL 2003.
I have a cell which I have custom formatted to dd-mmm which 'should' return 04-Jan when 4/1 is entered into that cell...Yes???


My problem is that I am getting 1-Apr as the result...???

Suggestions??????
Reply With Quote
  #2  
Old 01-04-2012, 09:02 AM
Catalin.B Catalin.B is offline Date formating problem in EXCEL 2003 Windows Vista Date formating problem in EXCEL 2003 Office 2010 32bit
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

you shoud enter data according to your regional settings in control panel...
if you are in USA, 1/4/2012 means 4 jan 2012.
or, here in Romania, i use 4/1/2012 for 4 ian 2012.
Then, if you enter 4/1, this means you first enter month!!, that's why it shows 1 -apr. You can format the cell to show date in your custom way (the excel number for that date is the same, no matter how YOU CHOOSE TO SEE that number), but data should be entered according to reg. settings.
Reply With Quote
  #3  
Old 01-04-2012, 12:41 PM
lyngio lyngio is offline Date formating problem in EXCEL 2003 Windows XP Date formating problem in EXCEL 2003 Office 2003
Novice
Date formating problem in EXCEL 2003
 
Join Date: Jan 2012
Posts: 6
lyngio is on a distinguished road
Default

Quote:
Originally Posted by lyngio View Post
Hi all,
I am experiencing an issue with date formatting in EXCEL 2003.
I have a cell which I have custom formatted to dd-mmm which 'should' return 04-Jan when 4/1 is entered into that cell...Yes???
My problem is that I am getting 1-Apr as the result...???

Suggestions??????
Quote:
Originally Posted by Catalin.B View Post
you shoud enter data according to your regional settings in control panel...
if you are in USA, 1/4/2012 means 4 jan 2012.
or, here in Romania, i use 4/1/2012 for 4 ian 2012.
Then, if you enter 4/1, this means you first enter month!!, that's why it shows 1 -apr. You can format the cell to show date in your custom way (the excel number for that date is the same, no matter how YOU CHOOSE TO SEE that number), but data should be entered according to reg. settings.
Yes I have checked that....
It is set as English (Australia) so by entering my date(s) as 4/1 it 'should' be showing in the cell as 4-Jan as my formatt for that cell is d-mmm........
Reply With Quote
  #4  
Old 01-04-2012, 11:34 PM
Catalin.B Catalin.B is offline Date formating problem in EXCEL 2003 Windows Vista Date formating problem in EXCEL 2003 Office 2010 32bit
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

Can you upload a sample of your worksheet that reproduces this problem?
Reply With Quote
  #5  
Old 01-05-2012, 07:05 AM
lyngio lyngio is offline Date formating problem in EXCEL 2003 Windows XP Date formating problem in EXCEL 2003 Office 2003
Novice
Date formating problem in EXCEL 2003
 
Join Date: Jan 2012
Posts: 6
lyngio is on a distinguished road
Unhappy

Quote:
Originally Posted by Catalin.B View Post
Can you upload a sample of your worksheet that reproduces this problem?
See attached
Attached Files
File Type: xls Book1.xls (74.0 KB, 14 views)
Reply With Quote
  #6  
Old 01-05-2012, 07:36 AM
Catalin.B Catalin.B is offline Date formating problem in EXCEL 2003 Windows Vista Date formating problem in EXCEL 2003 Office 2010 32bit
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

My guess it's only from regional settings...
Have another check of those settings:
control panel--> regional and language options-->formats tab (pay attention to the date samples , does it show for today , short date 5/1/2012 ? If not, click Customise this format button on this tab, then Date Tab. I cannot see another reason...
Reply With Quote
  #7  
Old 01-05-2012, 08:57 AM
lyngio lyngio is offline Date formating problem in EXCEL 2003 Windows XP Date formating problem in EXCEL 2003 Office 2003
Novice
Date formating problem in EXCEL 2003
 
Join Date: Jan 2012
Posts: 6
lyngio is on a distinguished road
Default

Quote:
Originally Posted by Catalin.B View Post
My guess it's only from regional settings...
Have another check of those settings:
control panel--> regional and language options-->formats tab (pay attention to the date samples , does it show for today , short date 5/1/2012 ? If not, click Customise this format button on this tab, then Date Tab. I cannot see another reason...
Yes agreed.........I cannot understand why it is so
I have attached a screen dump of the said settings.
I even changed them to other versions of English and back to the current (Australia) but alas no good.........Got me stumped!


Anyone else out there have any idea??? Heeeeeellllllppppp....
Attached Files
File Type: doc Doc1.doc (57.5 KB, 11 views)
Reply With Quote
  #8  
Old 01-05-2012, 10:02 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Date formating problem in EXCEL 2003 Windows XP Date formating problem in EXCEL 2003 Office 2003
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,771
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

If you enter 40912 in a cell and format as dd-mmm, what happens?

Your underlying value is 41000 which is April 1st
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #9  
Old 01-05-2012, 10:06 AM
lyngio lyngio is offline Date formating problem in EXCEL 2003 Windows XP Date formating problem in EXCEL 2003 Office 2003
Novice
Date formating problem in EXCEL 2003
 
Join Date: Jan 2012
Posts: 6
lyngio is on a distinguished road
Default

Quote:
Originally Posted by Pecoflyer View Post
If you enter 40912 in a cell and format as dd-mmm, what happens?

Your underlying value is 41000 which is April 1st
By enetring 40912 in the cell I get 01-Apr
Reply With Quote
  #10  
Old 01-05-2012, 09:37 PM
macropod's Avatar
macropod macropod is offline Date formating problem in EXCEL 2003 Windows 7 64bit Date formating problem in EXCEL 2003 Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi lyngio,

The culprit is your 'Worksheet_Change' macro. Change:
Target(1).Value = UCase(Target(1).Value)
to:
If Not IsDate(Target) Then Target(1).Value = UCase(Target(1).Value)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #11  
Old 01-27-2012, 03:37 AM
lyngio lyngio is offline Date formating problem in EXCEL 2003 Windows XP Date formating problem in EXCEL 2003 Office 2003
Novice
Date formating problem in EXCEL 2003
 
Join Date: Jan 2012
Posts: 6
lyngio is on a distinguished road
Thumbs up

Quote:
Originally Posted by macropod View Post
Hi lyngio,

The culprit is your 'Worksheet_Change' macro. Change:
Target(1).Value = UCase(Target(1).Value)
to:
If Not IsDate(Target) Then Target(1).Value = UCase(Target(1).Value)
Sorry it's taken a while for me to get back but I've been on holidays...
Anyways, Fantastic........Works a treat now!!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Date formating problem in EXCEL 2003 word 2003 date picker nashville Word 16 04-06-2012 04:12 AM
Date formating problem in EXCEL 2003 Problem with opening xlsm in excel 2003 cryjoh Excel 2 12-13-2011 11:49 AM
Excel 2003 / 2007 files saving slow on Win 2003 Server Atradius Office 0 07-23-2011 07:41 AM
Date formating problem in EXCEL 2003 Excel 07 formating 17 cells "Need Formula" Raner Excel 2 05-30-2010 02:07 PM
Date formating problem in EXCEL 2003 Excel Date Alert? Kelleigh Excel 1 12-05-2008 09:35 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:14 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft