# 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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

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

Replies
2
Views
77
Replies
1
Views
22
Replies
25
Views
147
Replies
3
Views
153
Replies
8
Views
196

1,127,100
Messages
5,622,724
Members
415,923
Latest member
Kam80

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

### Which adblocker are you using?

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

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