![]() |
Populate year, month and quarter from entered date
A1 = 1/23/2009 date format
I need B1 to show the month 01, C1 to show quarter Q1 and D1 to show the year 2009. How do I do this automatically? |
Populate year, month and quarter from entered date
Try these in b1,c1 & d1 respectively
=TEXT(A1,"mm") =INT((MONTH(A1)-1)/3)+1 =TEXT(A1,"yyyy") Mike "Vic" wrote: A1 = 1/23/2009 date format I need B1 to show the month 01, C1 to show quarter Q1 and D1 to show the year 2009. How do I do this automatically? |
Populate year, month and quarter from entered date
You can simplify the formula for the quarter just a little bit like this...
=INT((MONTH(A1)+2)/3) -- Rick (MVP - Excel) "Mike H" wrote in message ... Try these in b1,c1 & d1 respectively =TEXT(A1,"mm") =INT((MONTH(A1)-1)/3)+1 =TEXT(A1,"yyyy") Mike "Vic" wrote: A1 = 1/23/2009 date format I need B1 to show the month 01, C1 to show quarter Q1 and D1 to show the year 2009. How do I do this automatically? |
All times are GMT +1. The time now is 11:14 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com