Extract First 6 digits and convert to date

srizki

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

I have the following, (a partial list).
[TABLE="width: 222"]
<colgroup><col></colgroup><tbody>[TR]
[TD="align: right"]1220160070029210[/TD]
[/TR]
[TR]
[TD="align: right"]0620180070029213[/TD]
[/TR]
[TR]
[TD="align: right"]0120170070029213[/TD]
[/TR]
[TR]
[TD="align: right"]1120160070029210[/TD]
[/TR]
[TR]
[TD="align: right"]0420170070029213[/TD]
[/TR]
</tbody>[/TABLE]
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

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
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,224,747
Messages
6,180,714
Members
452,995
Latest member
isldboy

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