Help with formatting date

TonyF57

New Member
Joined
May 28, 2021
Messages
8
Office Version
  1. 2019
Platform
  1. Windows
I am importing data and the date is in the incorrect format and has a green triangle top left of each date cell.

It gives me the option to ignore error, change date format by converting XX to 19XX or convert XX to 2021

I can resolve it manually by selecting the column and changing format to xx21 but I'd like to do it via a macro.

The macro works up until the point where I select the error dropdown, presumably that is not recordable.

Is there an automatic way of doing this?

Tony

There can be up to 10,000 entries.

I am importing data and the date is in the incorrect format and has a green triangle top left of each date cell.

It gives me the option to ignore error, change date format by converting XX to 19XX or convert XX to 2021

I can resolve it manually by selecting the column and changing format to xx21 but I'd like to do it via a macro.

The macro works up until the point where I select the error dropdown, presumably that is not recordable.

Is there an automatic way of doing this?

Tony

There can be up to 10,000 entries.

Date Format.xlsx
B
130/04/21
230/04/21
330/04/21
430/04/21
530/04/21
Sheet1
 

Attachments

  • Date.jpg
    Date.jpg
    8.5 KB · Views: 5

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,214,407
Messages
6,119,332
Members
448,888
Latest member
Arle8907

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