Hi All,
Can anyone help me how to substract a date (month).
e.g i have cell A1 = August. How to get in another cell, i.e B1= July,
which is the month before. (Without using lookup to another database)
Really appreciate your help
Cheers,
Miners
Last edited by NBVC; 08-28-2009 at 07:57 AM.
Do you have the text "August" or a date formatted to month as mmmm?
if the latter, try =TEXT(DATE(2009,MONTH((H3&" 1, 2009")+0)-1,1),"mmmm") where H3 contains the word "August"...
if the former: =DATE(YEAR(H3),MONTH(H3)-1,1) formatted as mmmm
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
You're the best NBVC, thanks
I know this is resolved, just demo'ing something daddylonglegs showed me which is quite neat, ie this element:
can be shortened toMONTH((A1&" 1, 2009")+0)-1
MONTH(1&A1)-1
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Thanks for that DonkeyOte....
I actually never have entered a date as 1August to get 1st August 2009... very neat! Of course, to be expected from the daddy![]()
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks