How do I convert credit card expiration date stored as myy to mm/yyyy

bwirth

New Member
Joined
Sep 23, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
New to the forum. I searched but couldn't find an answer to this questions.
I have an old db that outputs credit expiration dates as myy (without the leading 0), e.g. Jan 2023 is 123 whilst December 2023 is 1223. I need to convert this into mm/yyyy. I've tried text-to-columns, custom format, and MID formula, but can't get this right. Appreciate your assistance.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Welcome to Mr. Excel
Actually my thought of a custom format doesn't work.
 
Upvote 0
Hi Eric,

This definitely works!
I was able to use DATEVALUE and custom format to get that to render as MM/YYYY which is what I need to import this into another program

Thanks!
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

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