Changing Date Format

kipper19

Board Regular
Joined
Apr 12, 2014
Messages
92
Office Version
  1. 365
Platform
  1. Windows
Hi all,
I'm a little stumped on this, I have a spreadsheet and all the dates in column B are show in the format of 6th Nov 2021 etc, I would like to change the format to 6-11-2021, I have tried formatting them in format cells selecting the date etc but this dosnt work, I have also tried the text to columns function which didnt work either, im running office 365, would anyone have an idea or VBA code to change this, thanks again
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
im running office 365
Then it might be time to update your account details?

1656843924404.png


My guess is that the column B values are text values, not numerical. Try this formula and format with the date format you want.

Excel Formula:
=REPLACE(A2,FIND(" ",A2)-2,2,"")+0
 
Upvote 0
Solution
Then it might be time to update your account details?

View attachment 68523

My guess is that the column B values are text values, not numerical. Try this formula and format with the date format you want.

Excel Formula:
=REPLACE(A2,FIND(" ",A2)-2,2,"")+0
Thanks Peter, that worked and have updated profile
 
Upvote 0
You're welcome. Thanks for the follow-up. :)

.. and for updating your profile. (y)
 
Upvote 0

Forum statistics

Threads
1,215,035
Messages
6,122,785
Members
449,095
Latest member
m_smith_solihull

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