+ Reply to Thread
Results 1 to 9 of 9

Date Formula

  1. #1
    Registered User
    Join Date
    05-24-2010
    Location
    Rockville, MD
    MS-Off Ver
    Excel 2007
    Posts
    57

    Date Formula

    I have a Date column and I want to write a formula that would convert the "date" into the Month that is showing. For example, in column A I have "9/10/2010" and I want column B showing "September" as the month. Please help! Thank you so much!
    Last edited by Dhoang25; 10-21-2010 at 11:50 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Date Formula

    Just put in B2:

    =A2

    ...then apply a custom format to that cell/column of mmmm.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    05-24-2010
    Location
    Rockville, MD
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: Date Formula

    I'm sorry for not being clear. I'm trying to create a pivot table that will count for each month. If I use your method above, when I drag column B into "Row Labels" of the Pivot Table it counts each date of the month and not the total Monthly count. What I usually do is sort it out by month and c/p "October" for all rows. As I create a pivot table, it would give me the count for each month.

  4. #4
    Forum Contributor
    Join Date
    08-12-2010
    Location
    Excel World
    MS-Off Ver
    Excel 2013, 2019 & O365
    Posts
    214

    Re: Date Formula

    Plz check out the attached, I think it's solved in it. You can apply Month filter/ sorting for ur pivot table too.
    Attached Files Attached Files

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Date Formula

    Quote Originally Posted by Dhoang25
    I'm trying to create a pivot table that will count for each month.
    If you're using a Pivot you do not need the additional Column - simply "Group" the Date field by Month (& Year if necessary).
    http://www.contextures.com/xlpivot07.html

  6. #6
    Registered User
    Join Date
    05-24-2010
    Location
    Rockville, MD
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: Date Formula

    That's awesome! Thanks a bunch!

  7. #7
    Registered User
    Join Date
    05-24-2010
    Location
    Rockville, MD
    MS-Off Ver
    Excel 2007
    Posts
    57

    Re: Date Formula

    Donkey,

    I'm not sure how to use the Group functionality in Pivot. Can you please walk me through it? I would love to learn something new today! =)

  8. #8
    Forum Contributor
    Join Date
    08-12-2010
    Location
    Excel World
    MS-Off Ver
    Excel 2013, 2019 & O365
    Posts
    214

    Re: Date Formula

    Thanks a lot Mr. DonkeyOte for more info!!

    It's Awesome!

  9. #9
    Registered User
    Join Date
    09-17-2009
    Location
    Columbus, Ohio
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Date Formula

    I am trying to do this, and when I select group on my date column in the pivot I get an error- "cannot group this selection." The original data range is formatted as DATE. What am I missing? Thanks!
    NEVER MIND- I used your above link to contextures and found a solution! Thanks!

+ 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