Microsoft
Software
Hardware
Network
Question : Excel: How to Remove Characters in a Date String
I'm trying to remove the time characters in the Date-Time values, using the MID(..FIND(..)) function.
I was trying to get this to work by trial and error, but when I try to run the function:
=MID(A1,1,FIND(":",A1,1)-1
)
it is interpreting the date/time as a decimal number as shown on the right, and so it never finds the ":" character.
Cells A1 - A3 contain the following:
1/1/2008 7:29 Data Looks Like: 39448.3121412037
11/9/2008 7:31 Data Looks Like: 39761.3137615741
11/23/2008 18:34 Data Looks Like: 39775.7741203704
The final result I want is as follows:
1/1/2008
11/9/2008
11/23/2008
How do I get this to work as intended? Thanks.
Answer : Excel: How to Remove Characters in a Date String
Not sure if your problem is the format or the actual data. Assuming you want the underlying data (1/1/2008 7:29) with a 0 time (1/1/2008 00:00).
If your original data is in cell C2, try the following:=DATE(YEAR(C2),M
ONTH(C2),D
AY(C2))
Random Solutions
Removing duplicate entries in a file
Disable Shift ByPass Key = Error Message
Importing Spreadsheet data from Excel or Access into InDesign.
How do you bring up the MS Outlook 2007 Account Button when you have MS Exchange setup in outlook
Printing out gridlines on a report
Sendmail Spamming
Wake On Lan, Red Hat Linux 8.0
Copy contents of variable to clipboard in oracle forms
SQL Server 2005 Reporting Services - ReportViewer Webform Issue - Error: 'RSClientController' is undefined
SQL select query syntax, attempting to pass a integer variable from vb.net to a sql string select command