The tutorial explains the nuts and bolts of Excel MONTH and EOMONTH functions. You will find an array of formula examples demonstrating how to extract month from date in Excel, get the first and last day of the month, convert month name to number and more. Continue reading
Comments page 4. Total comments: 334
how can i get the formula for a birth date 10/29/2011 in months to show 55 months?
you can't since its 57 months.
try this. A1 represents the cell containing the birthday
=(TODAY()-A1)/365*12
This article is amazing and so is this website in general. LOADS of information published for everyone to read which is exactly the type of forum I'm looking for.
I'm trying to use formula =DATE(YEAR(TODAY()), MONTH(TODAY()), 22)
I am trying to utilize this formula to show a date for today's year and month for that specific end number, in this instance 22, which by today's date it would state 7/22/2016. What I really need is it to state to next date that falls under these standards. For instance. I want it to now state 8/22/2016 because 7/22/2016 has already passed. I don't know how to alter the month part to show the next month if today's month doesn't apply anymore because the month's date has already passed.
Let me know what you come up with. I'd love to hear some feedback. I'm stuck between a rock and a hard place right now.
Hi Amanda,
You can use the IF function to check if today's day is greater than 22, and if it is, add 1 to today's month, like this:
=IF(DAY(TODAY())>22, DATE(YEAR(TODAY()), MONTH(TODAY())+1, 22), DATE(YEAR(TODAY()), MONTH(TODAY()), 22))
hello,
Im trying sort out how many days of each month I worked on a project, but the way im trying to do it is I would like to be able to highlight the whole column and do a formula that would automatically calculate for each month how many days I worked for example:
3/30/2016
3/31/2016
4/1/2016
4/3/2016
4/5/2016
4/5/2016
4/7/2016
how many days in april did I work and for each month that year? I have a LOT of dates to go through so this would speed it up.
thank you!
Have you tried the networkdays formula as this help you remove weekends from the countthe
I am trying to convert date to fiscal month however the CHOOSE function does not seem to calculate ?
=CHOOSE(MONTH(G4),7,8,9,10,11,12,1,2,3,4,5,6)
Hi!
The formula is correct. Most likely the problem is with the original date in G4, which is either text or a date in the format that Excel does not understand.
how to get three letter month for example convert December into DEC.
Hello, Medusa,
You can use this formula in the Helper column to leave 3 first letters:
=LEFT(TRIM(A1), 3)
Is there a way to clean up How to sum data by month in Excel so I don't need a second 'month' column? And can this be modified to sort data by month and year, ie, multiple years data that is parsed into January , february, etc buckets by year, say a column for 2015 that shows Jan - Dec and another column for 2014 that does the same for Jan-Dec but extracts data from a multi-year column of data?
Hello, Pete,
Sorry, looks like it's not possible to accomplish this task without parsing data.
I was wondering how to create a formula so that I can see data from a particular month.
For example - For Budget review, we typically will need to see the previous month's data:
if Jan, show data in cell G4,
if Feb, show data in cell G5,
if Mar show data in cell G6,
if Apr, show data in cell G7,
if May, show data in cell G8,
if Jun, show data in cell G9,
if Jul, show data in cell G10,
if Aug, show data in cell G11,
if Sep, show data in cell G12,
if Oct, show data in cell G13,
if Nov, show data in cell G14,
if Dec, show data in cell G15
Hello, Todd,
I think this formula should work:
=IF(MONTH(A1)=1,G4,IF(MONTH(A1)=2,G5,IF(MONTH(A1)=3,G6,IF(MONTH(A1)=4,G7,IF(MONTH(A1)=5,G8,IF(MONTH(A1)=6,G9,IF(MONTH(A1)=7,G10,IF(MONTH(A1)=8,G11,IF(MONTH(A1)=9,G12,IF(MONTH(A1)=10,G13,IF(MONTH(A1)=11,G14,G15)))))))))))
I am trying to convert a Month into the a date number.
eg If I write the Month October, I want to convert to the following 1/10/15
Hello Mark,
Excel formulas cannot convert a month to a date in the same cell. But if you enter October, say in cell A1, you can enter the following formula in some other cell to convert it to the date:
=DATE(YEAR(TODAY()), MONTH(DATEVALUE(A1& "1")), 1)
I have days as number which will give difference between two dates...
For example : 01-03-2015 and 03-04-2015. I will get difference as 33 days.
Now to know this 33 days comes in which month... like 380 days comes in 13th month
(Year(Current Date)-year(previous date))*12+month(Current Date)
If you have the previous date in A1 and number of days as integer in A2
Then formula will be
=(Year(A1+A2)-Year(A1))*12+Month(A1+A2)
Hi, really interesting,
however also wanted to know if its possible to count how many dates occur in the next 60 days.
Have a list of certificate expiry dates, and want to know how many in column E expire in the next 60 days.
Is this possible within excel?
I've tried all of these;
=COUNTIF(E11:E1000,">"&DATE(YEAR(TODAY()),MONTH(TODAY())+2,DAY(TODAY())))
=COUNTIFS(E11:E1000,">"&"Today",E11:E1000,"<"&"Today"+60)
=COUNTIF(E11:E1000,August(TODAY())+2)
and none work/give me the correct answer. trialing the equations and know I have 4 within the next 60 days, each either give me 6 or 0.
Do you have any possible suggestions? Thanks
Hello, AC,
Please use the formula below:
=SUM((DAYS(E11:E1000,TODAY()) <= 60) * 1)
Note, this is an array formula. Press CTRL+SHIFT+ENTER to enter it.
Hi.
Im trying to autofill dates from a month..
example: if i fill the name of month: january.. then my 31 tables has to autofill the dates. those tables has to be connected with the name january..
i made something for now..
i put a datenumber example: 1-7-2015.. and the other tables autofills the date with +1 day for the next one...
but was wondering if i put the month name, will it change too. thx for help
Hello, Memo,
For us to be able to help you better, please send us the formula you use.
I have a similar problem to what is above. I want to autofill a column with the date number by referencing a column where I will just enter whatever months I want to be filled
Really appreciate the help
Hello. I have the sampe problem. would u mind to share the steps or formula ? thanks
Hi, may I know how to convert the data below to month ?
01.09.2015
I want the answer in Sep'15
Many thanks.
Hi...
U can tray this..
1st u have to convert into the date format to that the particular cell..follow the below ...
♦Press -alt+a+e (Text to columns) with select the cell
♦Then it should be in default mode or select ◘ Delimited - Next -Then remove all the check mark from all Delimited tab -then enter next- and select date in column data format range and select DMY - then enter Finish....
After all this your date formats will be change into 9/1/2015
then u can apply TEXT function to get your ans :-
9/1/2015 - =TEXT(select the sell,"mmmyy")
I hope u will get your answer ..
Thanks and cheers
Rajesh
Please just replace "." to "/" and than use =EOMONTH(A2,0)
=PROPER(TEXT(A2;"MMM"&"'"&"YY"))
A2 is the cell where the date is. For Office 2013 use ; in formula. For earlier office use ,
=PROPER(TEXT(DATE (2015;9;1);"MMM"&"'"&"YY"))