+ Reply to Thread
Results 1 to 3 of 3

Removing time from date/time data - Excel 2010

  1. #1
    Registered User
    Join Date
    04-04-2011
    Location
    Cleveland
    MS-Off Ver
    Excel 2010
    Posts
    6

    Removing time from date/time data - Excel 2010

    Hello, I am sure this is a simple thing but cannot seem to find a solution on my own. I get data from someone who pulls it from a SQL table and the date comes in the format of "12/28/2010 7:47:55 AM"

    I only need the date, how do I get the time removed. I can change the way the field formats the data to only show the time but that doesn't help me when I do a pivot table as each time results in there being many instances of the same date.

    Thanks,
    Steve
    Last edited by Huzzah; 04-04-2011 at 12:04 PM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Removing time from date/time data - Excel 2010

    =INT(A1) will just return the date part of a serial date/time value.

    Have you tried grouping your date/time values in your pivot by days though?

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    04-04-2011
    Location
    Cleveland
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Removing time from date/time data - Excel 2010

    Quote Originally Posted by Domski View Post
    =INT(A1) will just return the date part of a serial date/time value.

    Have you tried grouping your date/time values in your pivot by days though?

    Dom

    Thank you, for both replies. I completely forgot about the pivot table grouping options, that is the easiest solution! It's still good for me to have the other solution though.

+ 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