Day range to name as month

Reon35

New Member
Joined
Dec 5, 2017
Messages
3
[TABLE="width: 533"]
<colgroup><col span="2"><col><col><col><col span="3"></colgroup><tbody>[TR]
[TD="colspan: 4"]Condition for the Month column:[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 8"]>IF DATE/DAY IS 1-15, MONTH TO APPEAR ON MONTH COLUMN IS CURRENT MONTH

[/TD]
[/TR]
[TR]
[TD="colspan: 8"]>IF DATE/DAY IS 16-31, MONTH TO APPEAR ON MONTH COLUMN IS FOLLOWING MONTH[TABLE="width: 533"]
<colgroup><col span="2"><col><col><col><col span="3"></colgroup><tbody>[TR]
[TD="colspan: 4"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 8"]Hopefully someone can help me. Thanks[/TD]
[/TR]
[TR]
[TD="colspan: 8"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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