ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   I need a custom format of this number 70226 to show it 02/26/07. (https://www.excelbanter.com/excel-worksheet-functions/131324-i-need-custom-format-number-70226-show-02-26-07-a.html)

Forklift guy

I need a custom format of this number 70226 to show it 02/26/07.
 
From my database I receive dates in this format #0\/00\/00 so the formula
bar looks like this 70226 and the cell looks like this 7/02/26. I need a
custom format of this number 70226 to show it 02/26/07. Can I do this?

JE McGimpsey

I need a custom format of this number 70226 to show it 02/26/07.
 
there's no custom formatting that will change 70226 into 02/26/07. You
could use a cell in an adjacent column. For instance, if the value is in
A1, then one way:

B1: =DATE(2000+LEFT(A1,LEN(A1)-4), --MID(A1,LEN(A1)-3,2),
--RIGHT(A1,2))

You can then format B1 to mm/dd/yy



In article ,
Forklift guy <Forklift wrote:

From my database I receive dates in this format #0\/00\/00 so the formula
bar looks like this 70226 and the cell looks like this 7/02/26. I need a
custom format of this number 70226 to show it 02/26/07. Can I do this?



All times are GMT +1. The time now is 08:06 PM.

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