#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 86
Default Month formula

I have a date in cell D2 (DD-MM-YYYY), I wish in cell D3, to put the
month only prior to that date. That date will change from time to
time.

Any help?
TIA
Esra
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 86
Default Month formula

On Jun 30, 3:36*pm, Esradekan wrote:
I have a date in cell D2 (DD-MM-YYYY), I wish in cell D3, to put the
month only prior to that date. *That date will change from time to
time.

Any help?
TIA
Esra


in other words, I should have said, if the date in D2 is 30th June, I
wish May to be teh result of the formula in D3
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Month formula

One way, assuming you want the month to be returned as text in "mmm" format
In D3: =TEXT(DATE(YEAR(D2),MONTH(D2),0),"mmm")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Esradekan" wrote in message
...
On Jun 30, 3:36 pm, Esradekan wrote:
I have a date in cell D2 (DD-MM-YYYY), I wish in cell D3, to put the
month only prior to that date. That date will change from time to
time.

Any help?
TIA
Esra


in other words, I should have said, if the date in D2 is 30th June, I
wish May to be teh result of the formula in D3


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Month formula

Here is one way...

=TEXT(DATE(YEAR(D2),MONTH(D2)-1,1),"mmmm")

Rick


"Esradekan" wrote in message
...
On Jun 30, 3:36 pm, Esradekan wrote:
I have a date in cell D2 (DD-MM-YYYY), I wish in cell D3, to put the
month only prior to that date. That date will change from time to
time.

Any help?
TIA
Esra


in other words, I should have said, if the date in D2 is 30th June, I
wish May to be teh result of the formula in D3

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Month formula

Actually, I'm pretty sure this simpler formula will always work...

=TEXT(DATE(0,MONTH(D2),0),"mmmm")

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
Here is one way...

=TEXT(DATE(YEAR(D2),MONTH(D2)-1,1),"mmmm")

Rick


"Esradekan" wrote in message
...
On Jun 30, 3:36 pm, Esradekan wrote:
I have a date in cell D2 (DD-MM-YYYY), I wish in cell D3, to put the
month only prior to that date. That date will change from time to
time.

Any help?
TIA
Esra


in other words, I should have said, if the date in D2 is 30th June, I
wish May to be teh result of the formula in D3




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Month formula

That won't work for any date in January.

Try this:

=TEXT(D2-DAY(D2),"mmmm")

--
Biff
Microsoft Excel MVP


"Rick Rothstein (MVP - VB)" wrote in
message ...
Actually, I'm pretty sure this simpler formula will always work...

=TEXT(DATE(0,MONTH(D2),0),"mmmm")

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
Here is one way...

=TEXT(DATE(YEAR(D2),MONTH(D2)-1,1),"mmmm")

Rick


"Esradekan" wrote in message
...
On Jun 30, 3:36 pm, Esradekan wrote:
I have a date in cell D2 (DD-MM-YYYY), I wish in cell D3, to put the
month only prior to that date. That date will change from time to
time.

Any help?
TIA
Esra


in other words, I should have said, if the date in D2 is 30th June, I
wish May to be teh result of the formula in D3




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Month formula

Good point... and easily solved...

=TEXT(DATE(1,MONTH(A4),0),"mmmm")

but, I like formula better (it's cleaner).

Rick


"T. Valko" wrote in message
...
That won't work for any date in January.

Try this:

=TEXT(D2-DAY(D2),"mmmm")

--
Biff
Microsoft Excel MVP


"Rick Rothstein (MVP - VB)" wrote in
message ...
Actually, I'm pretty sure this simpler formula will always work...

=TEXT(DATE(0,MONTH(D2),0),"mmmm")

Rick


"Rick Rothstein (MVP - VB)" wrote
in message ...
Here is one way...

=TEXT(DATE(YEAR(D2),MONTH(D2)-1,1),"mmmm")

Rick


"Esradekan" wrote in message
...
On Jun 30, 3:36 pm, Esradekan wrote:
I have a date in cell D2 (DD-MM-YYYY), I wish in cell D3, to put the
month only prior to that date. That date will change from time to
time.

Any help?
TIA
Esra

in other words, I should have said, if the date in D2 is 30th June, I
wish May to be teh result of the formula in D3





  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Month formula

I left out a word...

but, I like YOUR formula better (it's cleaner).

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
Good point... and easily solved...

=TEXT(DATE(1,MONTH(A4),0),"mmmm")

but, I like formula better (it's cleaner).

Rick


"T. Valko" wrote in message
...
That won't work for any date in January.

Try this:

=TEXT(D2-DAY(D2),"mmmm")

--
Biff
Microsoft Excel MVP


"Rick Rothstein (MVP - VB)" wrote
in message ...
Actually, I'm pretty sure this simpler formula will always work...

=TEXT(DATE(0,MONTH(D2),0),"mmmm")

Rick


"Rick Rothstein (MVP - VB)" wrote
in message ...
Here is one way...

=TEXT(DATE(YEAR(D2),MONTH(D2)-1,1),"mmmm")

Rick


"Esradekan" wrote in message
...
On Jun 30, 3:36 pm, Esradekan wrote:
I have a date in cell D2 (DD-MM-YYYY), I wish in cell D3, to put the
month only prior to that date. That date will change from time to
time.

Any help?
TIA
Esra

in other words, I should have said, if the date in D2 is 30th June, I
wish May to be teh result of the formula in D3





  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Month formula

I left out a word...

I do that a lot, too!


--
Biff
Microsoft Excel MVP


"Rick Rothstein (MVP - VB)" wrote in
message ...
I left out a word...

but, I like YOUR formula better (it's cleaner).

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
Good point... and easily solved...

=TEXT(DATE(1,MONTH(A4),0),"mmmm")

but, I like formula better (it's cleaner).

Rick


"T. Valko" wrote in message
...
That won't work for any date in January.

Try this:

=TEXT(D2-DAY(D2),"mmmm")

--
Biff
Microsoft Excel MVP


"Rick Rothstein (MVP - VB)" wrote
in message ...
Actually, I'm pretty sure this simpler formula will always work...

=TEXT(DATE(0,MONTH(D2),0),"mmmm")

Rick


"Rick Rothstein (MVP - VB)" wrote
in message ...
Here is one way...

=TEXT(DATE(YEAR(D2),MONTH(D2)-1,1),"mmmm")

Rick


"Esradekan" wrote in message
...
On Jun 30, 3:36 pm, Esradekan wrote:
I have a date in cell D2 (DD-MM-YYYY), I wish in cell D3, to put the
month only prior to that date. That date will change from time to
time.

Any help?
TIA
Esra

in other words, I should have said, if the date in D2 is 30th June, I
wish May to be teh result of the formula in D3







  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Month formula

Hi

Format cell D3, FormatCellsNumberCustom mmm
In Cell D3 enter
=D2-DAY(D2)
--
Regards
Roger Govier

"Esradekan" wrote in message
...
On Jun 30, 3:36 pm, Esradekan wrote:
I have a date in cell D2 (DD-MM-YYYY), I wish in cell D3, to put the
month only prior to that date. That date will change from time to
time.

Any help?
TIA
Esra


in other words, I should have said, if the date in D2 is 30th June, I
wish May to be teh result of the formula in D3


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
Trying to get a Boolean formula to work month-to-month mstieler Excel Discussion (Misc queries) 4 July 18th 07 10:12 PM
Function or formula to convert "text" month to number of month? Steve Vincent Excel Discussion (Misc queries) 5 May 15th 07 01:11 AM
month formula Reggiee Excel Worksheet Functions 3 August 25th 06 05:54 PM
Function or formula to convert "text" month to number of month? Kevin Vaughn Excel Discussion (Misc queries) 0 February 4th 06 04:45 PM
Function or formula to convert "text" month to number of month Steve Vincent Excel Discussion (Misc queries) 1 February 4th 06 04:19 PM


All times are GMT +1. The time now is 07:46 AM.

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

About Us

"It's about Microsoft Excel"