Typing in dates

ALLAROUNDOFFICE

Board Regular
Joined
Apr 26, 2014
Messages
61
How can I hard code a column of cells to convert the user entered data of "042614" or "42614" into a specific date format such as 04/26/2014?
 

Some videos you may like

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
36,400
Office Version
  1. 2010
Platform
  1. Windows

Whatever you attempted to show us in this message did not post correctly.
 

MARK858

MrExcel MVP
Joined
Nov 12, 2010
Messages
13,420
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
  2. Mobile
Then I'm stumped. All I can suggest is putting your workbook on a file hosting site like Box.com, make sure you mark it for sharing and post a link in the thread.
 

ALLAROUNDOFFICE

Board Regular
Joined
Apr 26, 2014
Messages
61
Then I'm stumped. All I can suggest is putting your workbook on a file hosting site like Box.com, make sure you mark it for sharing and post a link in the thread.
If I type 042614 in A3, Excel changes it to 09/01/16. If I type 042614 in A4, Excel changes it to 042614...
 

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
36,400
Office Version
  1. 2010
Platform
  1. Windows
Try one of the add-ins shown in my signature line at the bottom of this message...
 

ALLAROUNDOFFICE

Board Regular
Joined
Apr 26, 2014
Messages
61

ADVERTISEMENT

Then I'm stumped. All I can suggest is putting your workbook on a file hosting site like Box.com, make sure you mark it for sharing and post a link in the thread.
Is there any other way around this? Can I just type in a formula instead of doing the event code thing since that is not going to work on my system for some reason...All I need is to convert the digits entered by the user to a six digit date with slashes...
 

ALLAROUNDOFFICE

Board Regular
Joined
Apr 26, 2014
Messages
61
FYR.
Convert an 8-digit number into Excel-recognizable Date | wmfexcel
This is actually inspired by Rick some time ago.
I read the article, but I am somewhat of a novice on formulas. All of the cells are blank right now and the users will be typing in a date as the sale happens. As you probably know, every person types in dates differently so I want to hard code the sale date column to convert to a six or eight digit date with slashes regardless of how the user types it in..i.e. for April 26th, 2014 I've seen 42614, 4262014, 042614, 04262014, 4-26-14, 04-26-2014, etc...
 

Watch MrExcel Video

Forum statistics

Threads
1,112,769
Messages
5,542,431
Members
410,550
Latest member
ganeshsamant
Top