Formula needed to change date format

KirstenNJ

Board Regular
Joined
Sep 19, 2002
Messages
97
I have data that has been dumped to excel from SAP. Some of the cells are showing a custom date format of mm/dd/yyyy (example: 01/01/2002). The data really should really be text and be 01-01-02. It isn't a date at all. I can make it look like 01-01-02 as a date but when I try to change it to text it makes it a 5 digit number. Anyone know the formula to convert to the format I want?
Thanks!
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
maybe I don't understand the problem then...

if it's a date field and you want it to be a text field then you want

=text(a1,"dd-mm-yy")
 
Upvote 0
On 2002-10-11 11:52, KirstenNJ wrote:
I have data that has been dumped to excel from SAP. Some of the cells are showing a custom date format of mm/dd/yyyy (example: 01/01/2002). The data really should really be text and be 01-01-02. It isn't a date at all. I can make it look like 01-01-02 as a date but when I try to change it to text it makes it a 5 digit number. Anyone know the formula to convert to the format I want?
Thanks!

Apply the following formulas to a cell with the troublesome 01/01/2002 in it:

=LEN(A1)

=ISNUMBER(A1)

What results do you get?
 
Upvote 0
Thanks Boardmaster, the TEXT solution worked. It just didn't like if I picked "format, cells, text" from the menu bar but writing the formula in a separate cell works.
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,447
Members
448,966
Latest member
DannyC96

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top