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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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,225,635
Messages
6,186,125
Members
453,340
Latest member
Stu61

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