LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Can we define a date format in a cell

there is no built in support for it.

As a test,
I tried data validation to force the user to enter Jan . . . using a
formula like

=UPPER(LEFT(G5,3))="JAN"

and it didn't work. I could just enter the letters Jan. This would
indicate to me that data validation is looking at the underlying date serial
number. the change event wouldn't kick in until after the entry is complete.
So I don't see it as an option, but maybe someone else has a creative idea.

--
Regards,
Tom Ogilvy




"Dev" wrote:

Hi all,

Thank you so much for all your suggestions. The reason I am asking for
defining a date format is primarily to compel the enterer to enter date in a
specific format to avoid any errors. Normally I notice that different people
updating a spreadsheet generally enter dates in different formats which
causes a lot of issues while doing ageing analysis involving rework and
reformatting to get it all in one standard. Hence if we can have a format
predefined when the person is entering the date it will not allow him to make
an error.

I hope I have been clear in explaining.

Thanks again

Dev

"Tom Ogilvy" wrote:

Just to add to Norm's excellent advice:
Dates are stored as the number of days since a base date. You format the
cell to have it appear as you like. You can see this by entering the same
date into a variety of adjacent cells. Then select those cells and format
them as General and you will see they all hold the same value. Now format
them as you want them to appear.

--
Regards,
Tom Ogilvy



"Dev" wrote:

Hi there,

Can we define a date format in a cell to restrict only dates with certain
formats can be entered.

Thanks for your help in advance.

Dev

 
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
Cell Format Overrides to Date Format Mary Excel Worksheet Functions 0 September 1st 09 07:37 PM
Generate sequential numbers with define format. Marcos Excel Worksheet Functions 3 December 30th 08 04:27 PM
How can I get date of file creation to XLS cell in date format? Radek Simek Excel Worksheet Functions 3 November 8th 07 04:24 PM
Define a cell value base on the date BaseballFan Excel Discussion (Misc queries) 2 April 10th 07 01:51 AM
How do I define a Format Cell Number Category JimM Excel Programming 2 March 11th 05 03:51 PM


All times are GMT +1. The time now is 07:06 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"