Month formula

E

Esradekan

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
 
E

Esradekan

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
 
M

Max

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")

---
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
 
R

Rick Rothstein \(MVP - VB\)

Here is one way...

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

Rick


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
 
R

Rick Rothstein \(MVP - VB\)

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

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

Rick
 
R

Rick Rothstein \(MVP - VB\)

Good point... and easily solved...

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

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

Rick
 
R

Rick Rothstein \(MVP - VB\)

I left out a word...

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

Rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top