Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Trying to get a Boolean formula to work month-to-month | Excel Discussion (Misc queries) | |||
Function or formula to convert "text" month to number of month? | Excel Discussion (Misc queries) | |||
month formula | Excel Worksheet Functions | |||
Function or formula to convert "text" month to number of month? | Excel Discussion (Misc queries) | |||
Function or formula to convert "text" month to number of month | Excel Discussion (Misc queries) |