Hi,
I have two questions regarding date format and hope you can provide input.
1) say 01/01/2010 displays as Jan-10 and i need a new column to state it as JAN. What function should i use to achieve it?
2) i need to state the difference between first day and last day of the month. What function should i use to achieve it?
Thanks in advance for you guys help.
Last edited by mingali; 01-17-2010 at 10:18 AM.
Re question 1 - either:
a) =A1 format as MMM
b) =TEXT(A1,"MMM")
Re: question 2 - either:
a) =DAY(EOMONTH(A1,0))
b) =DAY(DATE(YEAR(A1),MONTH(A1)+1,0))
use of EOMONTH requires activation of Analysis ToolPak pre XL2007
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
1) right click on the cell -> Format cells -> custom -> (write in) mmmm (for January) or mmm (for Jan)
2) try this formula =DATE(;MONTH(L28)+1; )-DATE(;MONTH(L28); )
Replace ; with , if needed
"Relax. What is mind? No matter. What is matter? Never mind!"
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks