Conversion to month/year for pivot

John Schroeder

New Member
Joined
Jul 11, 2011
Messages
27
I have a large data file that contains a column of data that refers to a month and year in the following format YYYYMM. Trying to covert and strip out month (MM) into a data value for a pivot table and having issues. I have seen some code decifier some data, but cant seem to extract it for my purposes. Any help appreciated
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Is this what you're looking for?

Excel Workbook
ABCDE
22YYYYMMAMOUNTMMYYDate
2319990250002199901/02/1999
24200104250004200101/04/2001
25200611123411200601/11/2006
26201008444408201001/08/2010
27201008450008201001/08/2010
28201008350108201001/08/2010
Sheet1
Excel 2010
Cell Formulas
RangeFormula
C23=RIGHT(A23,2)
D23=LEFT(A23,4)
E23=DATE(D23,C23,1)





Excel Workbook
HIJ
30Sum of AMOUNT
31YYMMTotal
32199902500
332001042500
342006111234
3520100812445
36Grand Total16679
Sheet1
Excel 2010
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

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