Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Is there a formula that will return only the month from a date?

I have a column with dates. I want to put a cell with a formula beside each
date that will return the month. I know I can do this with formatting but I
want to use the "month" column in a pivot that will let me sort my data by
month. When I just return the date value and change the formatting to show as
month, the pivot still reads the "month" cells as a day.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Is there a formula that will return only the month from a date?

Use formula = month(A1)

"birdgirl31" wrote:

I have a column with dates. I want to put a cell with a formula beside each
date that will return the month. I know I can do this with formatting but I
want to use the "month" column in a pivot that will let me sort my data by
month. When I just return the date value and change the formatting to show as
month, the pivot still reads the "month" cells as a day.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Is there a formula that will return only the month from a date?

If you want the month name:

Short name format: Jan

=TEXT(A1,"ddd")

Long name format: January

=TEXT(A1,"dddd")

--
Biff
Microsoft Excel MVP


"birdgirl31" wrote in message
...
I have a column with dates. I want to put a cell with a formula beside each
date that will return the month. I know I can do this with formatting but
I
want to use the "month" column in a pivot that will let me sort my data by
month. When I just return the date value and change the formatting to show
as
month, the pivot still reads the "month" cells as a day.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Is there a formula that will return only the month from a date?

Ooops!

Short name format: Jan
=TEXT(A1,"ddd")
Long name format: January
=TEXT(A1,"dddd")


Those formulas will return the weekday. These are the correct formulas:

=TEXT(A1,"mmm")
=TEXT(A1,"mmmm")

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
If you want the month name:

Short name format: Jan

=TEXT(A1,"ddd")

Long name format: January

=TEXT(A1,"dddd")

--
Biff
Microsoft Excel MVP


"birdgirl31" wrote in message
...
I have a column with dates. I want to put a cell with a formula beside
each
date that will return the month. I know I can do this with formatting but
I
want to use the "month" column in a pivot that will let me sort my data
by
month. When I just return the date value and change the formatting to
show as
month, the pivot still reads the "month" cells as a day.





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Is there a formula that will return only the month from a date?

Thanks to you all - your formulas worked perfectly!

"birdgirl31" wrote:

I have a column with dates. I want to put a cell with a formula beside each
date that will return the month. I know I can do this with formatting but I
want to use the "month" column in a pivot that will let me sort my data by
month. When I just return the date value and change the formatting to show as
month, the pivot still reads the "month" cells as a day.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Is there a formula that will return only the month from a date?

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"birdgirl31" wrote in message
...
Thanks to you all - your formulas worked perfectly!

"birdgirl31" wrote:

I have a column with dates. I want to put a cell with a formula beside
each
date that will return the month. I know I can do this with formatting but
I
want to use the "month" column in a pivot that will let me sort my data
by
month. When I just return the date value and change the formatting to
show as
month, the pivot still reads the "month" cells as a day.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Return Month & Year of Date Value WildWill Excel Discussion (Misc queries) 1 November 17th 08 04:43 PM
return month from a date Dave F Excel Discussion (Misc queries) 6 November 12th 06 05:12 PM
Auto return month as text date martins Excel Discussion (Misc queries) 1 March 19th 06 02:59 PM
In Excel How do I return the Month for a specific date Ashok Natarajan Excel Discussion (Misc queries) 1 January 23rd 06 09:05 AM
In Excel, look at a date field and return just the month.. KC Excel Discussion (Misc queries) 2 May 20th 05 12:37 PM


All times are GMT +1. The time now is 12:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"