+ Reply to Thread
Results 1 to 5 of 5

Removing day from the date cells?

  1. #1
    Registered User
    Join Date
    05-24-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    46

    Question Removing day from the date cells?

    Hi,
    How do I go about removing the day from a column of dates? I'm not talking about formatting, but actually getting rid of the day values.
    Last edited by nanomess; 04-14-2013 at 07:33 PM.

  2. #2
    Forum Contributor bentleybob's Avatar
    Join Date
    02-27-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    644

    Re: Removing day from the date cells?

    Are the dates currently in there as text? If so, what is the format? This shouldn't be difficult knowing that.

  3. #3
    Registered User
    Join Date
    05-24-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Removing day from the date cells?

    Nope, it's in mmm/yy format, which is how I'd like to have it represented when I use the data for charts and what not, but when in use the day value comes into play too since it still exists even though it's not displayed.

  4. #4
    Forum Contributor bentleybob's Avatar
    Join Date
    02-27-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    644

    Re: Removing day from the date cells?

    If it's entered as a date (e.g., today is March 14, so it's the number 41378 formatted as "Apr 13" or something to that effect), then I don't believe you can actually remove the day because April 2013 spans the range of numbers from 41365 to 41394. What are you trying to do that you want to remove the day rather than just display it that way?

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Removing day from the date cells?

    Another point to consider is that, even if you do extract the "day" portion of the date - say with something like this - =MID(TEXT(TODAY(),"m/dd/yyy"),3,2), you will be left with a text string, which you will not be able to use for calcs and probably not for charts?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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