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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Michael M.... THANK YOU ! I acknowledge you for your simple act of gratitude. I appreciate you.
 
Upvote 0

Forum statistics

Threads
1,224,880
Messages
6,181,532
Members
453,054
Latest member
ezzat

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