How to increase date by the month from a certain <day

Jtsuperman34

New Member
Joined
Mar 4, 2020
Messages
3
Office Version
  1. 365
Hello, I am needing some assistance.

I am trying to get one cell to show an increase or decrease by the month, based off the day of the month being <, =, or > 15.
example-
A1 - shows 04/14/15
I would like B1 to reflect the number 3 for the month of March since the day is less than 15.

If the date was 04/16/15, I’d like B1 to reflect the number 5 since the day (16) is greater than 15.

Id really appreciate the help. Hopefully what I’m asking makes sense.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi, welcome to the forum! Here is one option you can try (note, my dates are shown in dd/mm/yyyy format).

Book1
AB
114/04/20154
216/04/20155
Sheet1
Cell Formulas
RangeFormula
B1:B2B1=MONTH(EDATE(A1,0+(DAY(A1)>15)))
 
Upvote 0
@FormR thank you. That is exactly what I was looking for. Can you tell me how I can combine all 3 formulas so that when the day is = or < than 15 it will drop a month? Below all work individually, but i cannot figure out home to combine the formulas.
=MONTH(EDATE(A16,0+(DAY(A16)>15)))
=MONTH(EDATE(A16,0-(DAY(A16)<15)))
=MONTH(EDATE(A16,0-(DAY(A16)=15)))
 
Upvote 0
Hi, try like this.

=MONTH(EDATE(A16,IF(DAY(A16)>15,1,-1)))
 
Upvote 0

Forum statistics

Threads
1,215,559
Messages
6,125,517
Members
449,236
Latest member
Afua

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