Extract First 6 digits and convert to date

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,844
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

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
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,215,391
Messages
6,124,678
Members
449,179
Latest member
fcarfagna

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