Month Formula

S

scott

I am working on a spreadsheet that has monthly data for a five-year period. I
need to convert all the data for each month into daily data. I am simply
dividing the total for each month by the number of days in each respective
month..Instead of copy and paste, or drag and drop, is there a formula that
allows a user to click on a cell containing the name of a month and have
excel recognize the number of days in that month? For example, if A1 has
"September" and B1 has 1,000,000, can I insert a formula in C1 that allows me
to do =B1/A1 instead of B1/30?

Sorry for the confusion and thanks for the help.
 
S

scott

Thanks for the formula, but it does not recognize that February has 28/29
days...it returns "30" for all February months in the five-year period. What
change do I need to make in the formula you provided me to fix this?
 
P

PCLIVE

I'm not sure why you would be getting 30. As you know, you should never get
30. As long as you have a valid date including the year in the specified
cell (A1), then the result should be accurate. Try recalculating (F9).



--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Reference Formula Help 1
Daily Average 6
Calculating weeks 1
Find days in a Month 3
Conditional formatting, Excel 2007 2
Convert Month Display 8
Bargain 30GB for £10 a month on a 1 month contract. 4
First day of Next Month 5

Top