changuing Date format

BRIITO

New Member
Joined
Oct 3, 2008
Messages
19
Need some help with this...
There is an sales management system in the company I work for, from were I have to get a report and export it to excel to manipulate.
This report shows dates in cells with in the format YYYYMMDD (example cell A1 = 20100611).
I want to know if there is a formula or combination of formulas I can use to change the order of the numbers to the format dd-mmm-yy in an adjecent cell (B1 for example).
Right now I have a data base with all the dates of the year and use vlookp to change the formula....is there another way to do it that does not involve having to link 2 diff workbooks??

Hope I made myself clear...

Thanks a lot!!
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
u can easily do it by extracting left / right / mid parts and then use VALUE to convert to numbers, or use these formulas
year =INT(A1/10000)
month =INT(MOD(A1,10000)/100)
day =MOD(A1,100)

P.S. i misunderstood u i think. this is it:

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

and format the cell from Custom Format to dd-mm-yy
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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