ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   a cell to display number of days in a month given in another cell (https://www.excelbanter.com/excel-worksheet-functions/108585-cell-display-number-days-month-given-another-cell.html)

sudip

a cell to display number of days in a month given in another cell
 
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

Franz Verga

a cell to display number of days in a month given in another cell
 
sudip wrote:
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




All times are GMT +1. The time now is 04:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com