Simple formula Help.

abellad

Board Regular
Joined
Jun 3, 2003
Messages
75
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
 

Some videos you may like

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
One way to find the number of days in a month:

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

abellad

Board Regular
Joined
Jun 3, 2003
Messages
75
Thanks for that. I have input the formula you suggested and then referenced that to the cell.
 

Watch MrExcel Video

Forum statistics

Threads
1,126,888
Messages
5,621,417
Members
415,839
Latest member
Pollydooner

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
Top