![]() |
|
![]() |
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
![]()
We have one column with a last date gave. We want to write a formula that looks at that cell and outputs a "0" if it is before 06/30/2014 outputs a "1" if the date in the cell is between 7/1/2014 and 6/30/2015 and then a "2" if it is between 7/1/15 and 6/30/16 and a "3" between 7/1/16 and 6/30/18
Thank you |
#2
|
|||
|
|||
![]()
I thought I would show you the formula a have been tweaking with no success. I did get a 1 once but when I added the third formula it stopped with a error message.
=IF(AND(M4955<=DATE(2014,30,6)),0,IF(AND(M4955<=DA TE(2014,1,7),M4955<=DATE(2015,30,6)),1)) |
#3
|
||||
|
||||
![]()
Maybe?
Code:
=IF(M4955<=DATE(2014,6,30),0,IF(AND(M4955>=DATE(2014,7,1),M4955<=DATE(2015,6,30)),1,IF(AND(M4955>=DATE(2015,7,1),M4955<=DATE(2016,6,30)),2,IF(AND(M4955>=DATE(2016,7,1),M4955<=DATE(2018,6,30)),3,"")))) |
#4
|
|||
|
|||
![]()
Thank you, clearly the first AND I didn't think of removing. I am blaming trying way to many ideas and not returning to the original for the multitude of errors.
Thank you again. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
toddkad | Excel | 9 | 11-03-2016 03:10 AM |
![]() |
Mars | Excel | 1 | 10-21-2016 02:21 PM |
calculate date if date entered in cell, do nothing if blank | ConfuddledOne | Excel | 3 | 11-07-2014 09:37 AM |
![]() |
ravl13 | Project | 3 | 07-28-2014 05:16 PM |
Make table cell active add date count date | MelHerndon | Word VBA | 3 | 01-21-2013 04:23 PM |