Extract First 6 digits and convert to date

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,846
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have the following, (a partial list).
1220160070029210
0620180070029213
0120170070029213
1120160070029210
0420170070029213

<colgroup><col></colgroup><tbody>
</tbody>
I need to first 6 digits as for example, Dec-16, Jun-18 etc.
I can not use =LEFT(F4,6)
There must be an addition to this above formula.

Thanks,
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi,


Book1
ABC
11220160070029210Dec-16
20620180070029213Jun-18
30120170070029213Jan-17
41120160070029210Nov-16
50420170070029213Apr-17
6
7Column custom format mmm-yy
Sheet159
Cell Formulas
RangeFormula
C1=VALUE(LEFT(A1,2)&"/"&MID(A1,3,4))


C1 formula copied down.
Results converted to Real Date Values.
Format formula cells, "Custom", mmm-yy

EDIT: If you want the result as Text, let me know.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,073
Messages
6,128,645
Members
449,461
Latest member
kokoanutt

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