# Simple formula Help.

##### Board Regular
I'm looking for help with this simple formula.

B1 = User Choses Month and year from List Drop down in cell
D4= If Month chosen in Jan-09 then multiply C4 by 31, if Feb-09 then by 28 and so on.

So depending on the Month and year chosen I want the formula to calculate the number of days in that month and multiply it with the input in C4.

Any ideas.

Thanks

### Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

#### Andrew Poulsom

##### MrExcel MVP
One way to find the number of days in a month:

=DATE(YEAR(A1),MONTH(A1)+1,1)-DATE(YEAR(A1),MONTH(A1),1)

#### Ali Kırksekiz

##### Board Regular
Try this

=DAY(DATE(YEAR(A1),MONTH(A1)+1,1)-1)

##### Board Regular
Thanks for that. I have input the formula you suggested and then referenced that to the cell.

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,632
Messages
5,838,472
Members
430,549
Latest member
jayjay2022

### 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?

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