Macro Needed - Remove last 3 characters in a date format

nicktrajan

New Member
Joined
Jan 16, 2020
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Hello,

I need a vba code that looks through all of column D, which are date formatted like 09/27/19 & 09/28/19 etc. I need a code that will go through each one and remove the last 3 characters so it looks like 09/27 & 09/28.

Thank you in advance!!!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Are the current entered values valid date entries, or are they text entries?
 
Upvote 0
Highlight column
Format cell (or Control+1 on windows) > select custom format > and type "dd/mm" without the quotes.

It will still be formatted as a date.
 
Upvote 0
They are entered as date entries
So, can't you just change the format of the column to be "mm/dd"?
What is this being used for?
Do you need it to be changed to Text?
 
Upvote 0
So, can't you just change the format of the column to be "mm/dd"?
What is this being used for?
Do you need it to be changed to Text?

I was able to do this in custom format! Thank you!!
 
Upvote 0

Forum statistics

Threads
1,213,487
Messages
6,113,943
Members
448,534
Latest member
benefuexx

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