+ Reply to Thread
Results 1 to 11 of 11

Problems with changing date format

  1. #1
    Forum Contributor
    Join Date
    12-30-2012
    Location
    Israel
    MS-Off Ver
    2007, 2016
    Posts
    642

    Problems with changing date format

    Hi. I've changed the column's F format so that in each cell in the column the date appears like March-2014 rather than (originally) 19/03/2014. So far so good. However, when using pivot table column's F dates are still shown in the old format (19/03/2014), and so I cannot sort dates by month.. Any idea how to fix it through vba?

    Please Login or Register  to view this content.
    Please * if you like the answer

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Problems with changing date format

    you can group dates by month/year in a pivot table
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Forum Contributor
    Join Date
    12-30-2012
    Location
    Israel
    MS-Off Ver
    2007, 2016
    Posts
    642

    Re: Problems with changing date format

    Hi Josie, much appreciate getting further guidance, where to look at in the pivot menu?

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Problems with changing date format

    you need to add the date field to the row or column field area then just right click and choose group :-)

  5. #5
    Forum Contributor
    Join Date
    12-30-2012
    Location
    Israel
    MS-Off Ver
    2007, 2016
    Posts
    642

    Re: Problems with changing date format

    It may work, but the problem is that date (month), in my case, must be the filter so it cannot be row/column .

    If to get back to my original question, I wonder how instead of just changing the format I'll be able really changing 19/03/2014 to March 2014 (as an example).

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Problems with changing date format

    after you group you will have additional date fields (eg for year and month) and you can move them to the report filter area

  7. #7
    Forum Contributor
    Join Date
    12-30-2012
    Location
    Israel
    MS-Off Ver
    2007, 2016
    Posts
    642

    Re: Problems with changing date format

    Still a bit confused, maybe adding a sample of my work may help, could you demonstrate how to do such grouping?

    The sample contains two months - Dec-12 and Jan13

    Thank you
    Attached Files Attached Files

  8. #8
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Problems with changing date format

    I don't see how that will help you because you won't be able to reproduce it in your real workbook if you can't follow what I said? an easier way would be to insert a new column and use a formula like:
    =TEXT(D2,"mmm-yy")
    to convert the dates to text values and then use that in the pivot table

  9. #9
    Forum Contributor
    Join Date
    12-30-2012
    Location
    Israel
    MS-Off Ver
    2007, 2016
    Posts
    642

    Re: Problems with changing date format

    Ok, thanks for assisting, revised code below. Still getting error, maybe TEXT is a worksheetfunction, isn't it?
    Please Login or Register  to view this content.

  10. #10
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Problems with changing date format

    yeah-I did say formula ;-)
    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    12-30-2012
    Location
    Israel
    MS-Off Ver
    2007, 2016
    Posts
    642

    Re: Problems with changing date format

    Oh, I missed it. Thanks, works smoothly now

    Off topic: have you noticed the inherent negative incentive to help we have here? I've just been blocked from adding reputation to Josie, just because I did so a few hours ago when she had helped me on different problem I had...
    Last edited by GIS2013; 03-19-2014 at 10:59 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Changing Format of Retreived Data
    By alcharbonneau in forum Access Tables & Databases
    Replies: 7
    Last Post: 11-02-2012, 06:12 PM
  2. Changing data from one format into another
    By ramanan256 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2010, 08:04 PM
  3. Changing format of data
    By keesberbee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2006, 12:10 PM
  4. [SOLVED] Changing data format
    By frustratedwthis in forum Excel General
    Replies: 3
    Last Post: 05-11-2005, 03:06 PM
  5. Changing the format of a block of data
    By Greg in forum Excel General
    Replies: 0
    Last Post: 01-22-2005, 11:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1