date formatting functions
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Date formatting in Functions

Date formatting in Functions

resolvedResolved · Low Priority · Version Standard

replyReply Wed 19 Mar 2008, 13:55Delegate Lisa said...

Lisa has attended:
Excel VBA Intro Intermediate course

Date formatting in Functions

If creating a function using date, how do you get the answer to be formatted in date format?

For upcoming training course dates see: Pricing & availability

replyReply Mon 31 Mar 2008, 11:07 Edited on Mon 31 Mar 2008, 11:09Trainer Pete said...

RE: Date formatting in Functions

Hi Lisa, Welcome to the forum, Thank you for your post, in answer to your question, if the result is going to be in a date style, ie separated by hyphens (-) or the forward slash (/) Excel will recognise that it is to be a date, however in all other cases the number of days from the 1/1/1900 will be returned, this is more a question of the formatting properties of the receiving cell rather than the actual function itself. I suppose you could add further commands to the function if you desired or you could format the receiving cell/s and then the input will automatically be fomatted as whatever date style you require whenever the cell is populated. I hope that helps, best regards Pete

 

Please browse our web site to find out more about
course excel training vba london and other Microsoft training courses.

Excel tip:

Reset Excel toolbars to default settings

If you find any of your toolbars in Excel have changed (i.e. they are missing or have extra buttons) then you can reset them to their defaults.

1. Go to Tools - Customise.
2. Select the Toolbars tab.
3. Select (highlight) the name of the toolbar you wish to reset, then click the Reset button on the right.
4. Close the dialogue box.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard