a cell to display number of days in a month given in another cell

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

Guest

Hi everybody,

I know I may be asking a basic question, but the problem is driving me nuts.
I have month typed in one cell and I want to call the number of days in
another specific cell. How do I do that??

Regards

Sudip Roy
 
sudip said:
Hi everybody,

I know I may be asking a basic question, but the problem is driving
me nuts. I have month typed in one cell and I want to call the number
of days in another specific cell. How do I do that??

Regards

Sudip Roy


If, as you say, you have typed the month's name in a cell, say is F4, you
can have the number of days of the month in another cell in which you type
this formula:

=DAY(DATE(YEAR(VALUE("1/"&F4&"/"&YEAR(TODAY()))),MONTH(VALUE("1/"&F4&"/"&YEAR(TODAY())))+1,0))

You have to format as General or as Number the cell in which you insert the
formula.


--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy
 

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

Back
Top