+ Reply to Thread
Results 1 to 5 of 5

Pivot Table Date Format/Sort

  1. #1
    Registered User
    Join Date
    01-26-2007
    Location
    Seattle, WA
    Posts
    2

    Pivot Table Date Format/Sort

    I'm having a problem with several Pivot Tables that is driving me up the wall. I have read similar posts but no solutions that work for me.

    I have a Pivot Table with source data in a SQL Server Database. Some of the columns are dates formatted mm/dd/yyyy (ex. 01/01/2007). No blanks, nulls, or other data in the columns.

    Excel thinks these are text, so I can't sort or filter correctly by date.

    How can I make Excel recognize these as dates. Is there somewhere in the import process where I can do this? Do they need to be in a different format for Excel to recognize them?

    I want Excel to automatically recognize these dates on import.

  2. #2
    Forum Contributor
    Join Date
    02-28-2006
    Posts
    690
    I had a similar problem. I got round it by importing the data first to an excel spreadsheet, and yes, the dates are texts. So I created a helper column that converted text to date, and then used pivot tables.

    =value(a1) and format the cell dd mmm yy or whatever you want.

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Another way :

    Input "1" ( without quotes) in a cell somewhere - copy this cell
    Select the range you want to work on
    Right-click
    Paste special
    Check " multiply"
    OK
    You text has now become numbers which you can format as dates

  4. #4
    Registered User
    Join Date
    07-11-2012
    Location
    Washington, DC
    MS-Off Ver
    2010
    Posts
    1

    Re: Pivot Table Date Format/Sort

    I tried this and Excel said I could not move a pivot table or insert cells, rows, or columns.

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,602

    Re: Pivot Table Date Format/Sort

    @timkipp,
    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    Ben Van Johnson

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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