month value

sahil

Board Regular
Joined
Feb 13, 2009
Messages
66
Office Version
  1. 2019
Platform
  1. Windows
if I enter any month in "A1" column than the number of days in that particular month should be in column "B1".

eg: A1 = march 2009, than result in B1 = 31
If A1 = February 2009, than Result in B1 = 28

So on for every month.


Is there any way?


Sahil.......
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
If A1 is custom formatted as mmmm yyyy then when you type in "February 2009" that's what will display but the underlying value will be the 1st of that month

Then in B1 use this formula to get the number of days

=32-DAY(A1+31)
 
Upvote 0
Thanx a lot both of you.

either way worked well.
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,453
Members
448,967
Latest member
grijken

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top