Day range to name as month

Reon35

New Member
Joined
Dec 5, 2017
Messages
3
Condition for the Month column:
>IF DATE/DAY IS 1-15, MONTH TO APPEAR ON MONTH COLUMN IS CURRENT MONTH

>IF DATE/DAY IS 16-31, MONTH TO APPEAR ON MONTH COLUMN IS FOLLOWING MONTH
Hopefully someone can help me. Thanks

<colgroup><col span="2"><col><col><col><col span="3"></colgroup><tbody>
</tbody>

<colgroup><col span="2"><col><col><col><col span="3"></colgroup><tbody>
</tbody>
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Assuming date in A2, try this in B2 and copy down:

Code:
=IF(A2<=DATE(YEAR(A2),MONTH(A2),15),MONTH(A2),MONTH(A2)+1)
 
Upvote 0
First reply returns 13 for 17/12/2016.

Try this:

=IF(DAY(A1)<16,TEXT(A1,"mmmm"),TEXT(IF(MONTH(A1)+1=13,1,TEXT(DATE(YEAR(A1),MONTH(A1)+1,1),"mmmm")),"mmmm"))
 
Last edited:
Upvote 0
A bit shorter:

=TEXT(EDATE(A2,--(DAY(A2)>15)),"mmmm") for month names
=MONTH(EDATE(A2,--(DAY(A2)>15))) for month numbers
 
Upvote 0

Forum statistics

Threads
1,215,949
Messages
6,127,888
Members
449,411
Latest member
AppellatePerson

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