Need Help with a MONTH Formula

bjh894

New Member
Joined
Feb 27, 2011
Messages
9
Column A is for dates only. Column B is the number of the month associated with the date in A.

A1 is : 09/15/14
B1 is : 9


I understand I can use MONTH(A1) as a formula in B1, but how do I write the formula so it returns the number 0 if the month field is left blank?

In short, I have 500 rows, and not all rows have a date in Column A. The aforementioned MONTH(A1) formula wants to give a default answer of 1, which will not work for me when I later write my SUMIF formula to determine how any entries I have for the month of January.

Any help would be greatly appreciated.

Brian
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Michael M.... THANK YOU ! I acknowledge you for your simple act of gratitude. I appreciate you.
 
Upvote 0

Forum statistics

Threads
1,224,266
Messages
6,177,546
Members
452,783
Latest member
back1ply

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