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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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