ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Date Format Question (https://www.excelbanter.com/excel-discussion-misc-queries/12553-date-format-question.html)

Josh O.

Date Format Question
 
I have a date field that I need to convert into a usable date format.
The current date is input into a field as yyyymmdd. But the number is
entered as text. Is there a way to format that number or a formula to use to
make that format usable? What I want to use the date for is to create a
formula that calculates the days past due. For example, =("invoice
date"+30)-today( ).
However the formula won't work with the date in its current format.

Peo Sjoblom

Datatext to columns, click next twice, under column data format select date
and YMD,
click finish

for a formula solution assuming they always have 8 digits

=DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2))


--

Regards,

Peo Sjoblom


"Josh O." wrote in message
...
I have a date field that I need to convert into a usable date format.
The current date is input into a field as yyyymmdd. But the number is
entered as text. Is there a way to format that number or a formula to use

to
make that format usable? What I want to use the date for is to create a
formula that calculates the days past due. For example, =("invoice
date"+30)-today( ).
However the formula won't work with the date in its current format.





All times are GMT +1. The time now is 05:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com