We imported a bunch of data into cells. But when you click on the cell, their is an apostrophe before the data, so it thinks its a string. By removing the apostrophe, the data gets recognized as dates. How do I avoid doing this by hand?
相关问题
- how to split a list into a given number of sub-lis
- Excel sunburst chart: Some labels missing
- Generate string from integer with arbitrary base i
- Date with SimpleDateFormat in Java
- Converting a string array to a byte array
相关文章
- JSP String formatting Truncate
- Selecting only the first few characters in a strin
- Get column data by Column name and sheet name
- Python: print in two columns
- MYSQL: How can I find 'last monday's date&
- programmatically excel cells to be auto fit width
- Calculate number of working days in a month [dupli
- Unregister a XLL in Excel (VBA)
Use a column beside the dates column.
Add a formula like this one:
it will vary depending on your date format, copy this formula for all rows.
Then copy the results, and do a paste special where you paste values.
You now have a column with dates.
Yep, go for Find Replace (Ctrl + H)
find: ' //apostrophe replace with: //leave this blank
click "replace all"
I don't think the find and replce would would and the apostrophe is not part of the text, but a excel "feature". depending on how many you have to change - e.g. number of columns the simplist way I can think of without writing a macro would be.
Assuming your dates are in column A.
In a blank column put the following
This will store the date as a number. replicate the formulae down the column and then copy the values over the original dates. Apply cell formatting to short/long date if needed.
Hope this helps