Converting US date to UK format in Excel - excel-formula

I am currently pulling out US date from another spreadsheet using the following formula
=LEFT(IFERROR(VLOOKUP(A:A,'Token Report 2'!A:C,2,FALSE),""),16)
which gets me the following:
04/23/2014 23:04
from
04/23/2014 23:04 CDT
How do I get it to convert it to a UK date/time and get it to register with Excel?

Add 5 hours to go from CDT to GMT.
=VALUE(LEFT(A1,16))+5/24, where `A1' hold the text, will give you the correct date and time value. You'll need to format the cell to display properly as a date and time, or convert it to text explicitly (not usually recommended).
So =VALUE(LEFT(IFERROR(VLOOKUP(A:A,'Token Report 2'!A:C,2,FALSE),""),16))+5/24.

You can use Excel's text-to-column function. I'm copying the answer from here
Paste the dates into a column in a new Excel spreadsheet
Select the whole column
Select the Data menu > Text to Columns
Choose “Delimited” and click next
Untick all Delimiters and click next
Select the dropdown menu format “Date: MDY” and click Finish

Related

Changing excel header row into date

I have created a table in excel and from the 5th column the header must be dates like 1 Jan 23. The problem is when I create the table and add a column to it it doesn’t increase dates by a day, it increases by a year.I tried to use fill series and changing the format but it didn’t work.
Can you please help me resolve the issue?
I changed the format to dates but it didn’t work, I also tried formula it shows the date as 00-jan-00
When you mouse over the bottom right corner (red arrow) there is an icon with arrow that allows a drop down to appear. Click on the icon and select the type of fill that you want.
Another option is to use a function that does a date offset an example is the end of month function.
=EOMONTH(H1,3) which this will be a 3 month offset. Also there is a format painter that allows you to copy the format from one location to the next clicked location. If you want to format multiple cells double click the icon then when done formatting hit the [Esc] key.

How to convert a date from this format '31/1/19' to this format '1-31-2019' in Excel

I am doing an end to end Data Analytics project, for that I have a data set.
This data set has date column where many dates are in unstructured format (ie 31/1/19) how can I convert it into a standard format (ie 1-31-2019)
Through the Format menu on the top
Select the cells you want to format.
Press CTRL+1.
In the Format Cells box, click the Number tab.
In the Category list, click Date and then choose a date format you
want in Type.
Click OK
Visit

Parsing date format of mmm dd yyyy to excel date format

We use a booking system at work that exports reports where the date is entered in the format mmm dd yyyy (for example "Jun 01 2018"). Excel does not recognise this and the usual date formatting formulas can't touch it.
Is there a way to parse this using a formula so I can simply dump this export into a spreadsheet so I can perform quick analysis on booking behaviour.
I have not been able to find a solution to this online for this specific issue in Excel.
Thanks.
I hadn't thought of #Jeeped's method, using Text-to-Columns. I like it; that's probably the quickest way if you have a list of dates that need to be converted ad-hoc.
If you need a worksheet formula to do the conversion on an "ongoing" basis, this formula will also do the trick:
=DATEVALUE(SUBSTITUTE(A1," ",", ",2))
...where the string containing the date in MMM DD YYYY format is in cell A1.
Basically, Excel is picky about a comma.
Excel doesn't recognize Aug 08 2018 as a date, but it does recognize Aug 08, 2018 as a date.
This formula replaces the second space with a comma+space, and then DATEVALUE will recognize it as a date.
As usual, the date will be returned as a serial number, so then you can format the cell as a date with the Format Cells dialog: Ctrl+1 or (Right Click) > Format Cells.
Further to #Jeeped's method in his comment, this is how to do the same thing using Text-to-Columns:
Select (highlight) the cells to "convert"
on the Data tab of the ribbon, click Text to Columns
Choose Fixed Width (if not already selected), then click Next
Double-click each break line (if there are any), then click Next
Choose Date and then in the drop-down, choose MDY
Click Finish
More Information:
Office Support : DATEVALUE function
Office Support : SUBSTITUTE function
Office Support : Split text into different columns with the Text to Columns Wizard
ExcelTrainer : Converting Date Format Using Text To Columns
This should be =DATEVALUE(SUBSTITUTE(A1," ",", ",3)) in case your data is 'mmm d yyyy' when the day of the month < 10
This works for all days of the month regardless of if the day of the month is zero filled

Excel text to date format issue

I have the same issue as this OP when trying to change the date format
Excel 2010 date formatting not working on some cells but on others
The solution does work on converting those 'Text' to date format. However for the other datas in the same column which are in 'Date' format they give a #VALUE! error as shown in the image below when the entire column uses the formula.
Is there anyway to resolve this issue other than manually keying in the date which does not need to be fix, as I'm afraid in the future I might have more than a few thousands date to manually change
The formula I've used is this which the entire column uses,
=DATE(RIGHT(A2,4),LEFT(A2,FIND("/", A2,2)-1),MID(A2,FIND("/",A2)+1,2))
The data in column A is a mixture of text that looks like dates, and real dates. All rows with the error have the dates as real dates and the left/right/mid functions don't work on the format but on the underlying value, which in the case of the dates is a number. Try it just =RIGHT(A4,4) to see what I mean.
In order to run the formula, all data needs to be text. You can quickly convert the data to text by selecting column A, then click Data > Text to columns > Next > Next > Select "Text" in step 3 and click Finish.
The data will be converted to text and all your error values will disappear.

Exported dates not sorting correctly

I'm using an application called Kroll OnTrack to manage a review of documents as part of a litigation project. Kroll can export the metadata for these files into an XLS file. The problem is that when Kroll exports the dates for these documents, it seems to do so as a string, and the dates are being exported in MM/DD/YYYY format, so when I go to sort by date, the documents line up in this order:
01/01/2005
02/02/2005
03/05/2010
04/07/2006
05/03/2007
...and so on.
I need to be able to sort the table by date so we can put together a chronology of these documents. Trying to force Excel to re-format as a date doesn't seem to work, nor have I had any luck using DATEVALUE(). Right now, I'm doing text-to-columns then re-concatenating the dates, which seems to work, but is there a more elegant/efficient solution for this issue?
Perform Text-to-Columns on that column of dates but with some optional commands.
On the first screen of the T2C wizard, choose Fixed Width and click Next.
On the second page of the wizard, discard any border that Excel added by dragging them up out of the Data Preview window. It is very likely that none will be there. Click Next.
On the third page of the wizard, choose Column data format, Date and MDY from the drop-down selector beside Date.
Click Finish.
You should be left with real dates in the column. This procedure is easily recorded for future use.
In a column adjacent to your text dates, you could try something like this
DATE(RIGHT(E3,4),LEFT(E3,2),MID(E3,4,2))
Then copy down and sort/filter on this column of real dates.
Where cell E3 contains you text-date. You could also follow up with Text(...,"yyyy-mm-dd") or some other date format, if you need the date in a specific format.
The formula assumes that the text string contained in cell E3 is of length 10 (i.e. all white space is trimmed and padded zeros for day and month are used). If this is not the case, the forumula is easily amended.

Resources