Date If 6 months before Date or 6 Months after

Diggsy

New Member
Joined
Feb 13, 2018
Messages
1
Hello
I have a sales transactions sheet and I would like to add a column that would look at the sales date and compare it to a date in a referenced cell. If the Sales date is equal or 6 months greater. I would like column to state AFTER. if 6 months before referenced date , I would like the column to show Before. Any other date column should be Null. Any suggestions would be greatly appreciated.

Thanks

Chris
 

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.

Excel 2010
AB
11/1/2018
2
3
42/13/2018 
57/1/2017BEFORE
Sheet1
Cell Formulas
RangeFormula
B4=IF(A4<=EDATE($A$1,-6),"BEFORE",IF(A4>=EDATE($A$1,6),"AFTER",""))
B5=IF(A5<=EDATE($A$1,-6),"BEFORE",IF(A5>=EDATE($A$1,6),"AFTER",""))
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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