Number of days in month counted from shortened name of month & yea

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'd need to get the number of days in a month from the shortened name of
month and a year.
I have for example JAN in cell A1, and 2007 in cell A2, and I would need to
get the 31 as a result.

Any suggestions?

Thanks in advance!
 
One way:
=DAY(DATE(YEAR("1-"&A1&"-"&B1),MONTH("1-"&A1&"-"&B1)+1,0))
 
Thanks for the quick answer!

I still get the " Formula you typed contains an error"-message
I did try something similar yesterday, but every time I seem to get this
error message referring to ,MONTH part of the formula.

Any idea why this is & what would help?

"> One way:
 
Do you have your machine set up to expect a semi-colon (rather than a comma)
as a list separator?
 
Thanks a bunch!
How stupid of me.. Now I'm getting it right.

"David Biddulph" kirjoitti:
 
I'd need to get the number of days in a month from the shortened name of
month and a year.
I have for example JAN in cell A1, and 2007 in cell A2, and I would need to
get the 31 as a result.

Any suggestions?

Thanks in advance!

=DAY(--(A1&A2)+32-DAY(--(A1&A2)+32))

should do what you want.
--ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top