Date Formula

jjramirez85

New Member
Joined
May 21, 2014
Messages
19
I have a workbook where I enter a specific date such as today into an input cell, and I want the formula to output if the record date is one of the following "Previous", "Current" or "Future".

If I input 6/19/18 into my input cell then ---

If before the 1st of the month of June then "Previous"
If equal to or greater than the 1st day of the month but less than the input date then "Current"
If greater than input date than "Future"

This is what I attempted, but future is based off end of month---


=IF(K2<EOMONTH('by Sites - Current mo'!$B$2,-1)+1,"Previous",IF(K2>EOMONTH('by Sites - Current mo'!$B$2,0),"Future","Current"))
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
How about this ?


Book1
AB
1Input Date
219-Jun-18Current
Sheet1
Cell Formulas
RangeFormula
B2=IF(A2<=EOMONTH(TODAY(),-1),"Previous",IF(A2>TODAY(),"Future","Current"))
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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