W
Wolfwalker721
Hi =)
I have a colum of dates. In another spot on the worksheet I have 2 cells, 1
that sets the start date and 1 that sets the end date (usualy todays date). I
am trying to use a formula to
1)If the cell above is blank OR the date returned would not be within the
specified date range, I would like it to return "" (nothing)
2) If the cell above does indeed have a date AND that date falls in the date
ranger specified then return this (DATE(YEAR(A2),MONTH(A2)-$G$31,DAY(A2))))
with A2 being the cell right above this formula.
=IF(AND(A2="",((DATE(YEAR(A2),MONTH(A2)-$G$31,DAY(A2)))<F1)),"",(DATE(YEAR(A2),MONTH(A2)-$G$31,DAY(A2))))
A2 is the cell above
F1 Sets the start date
G31 set the number of months to subtract
I have no problem with using a different type of formula if there is a
better way to do this I am all for it.
Thanks in advance
I have a colum of dates. In another spot on the worksheet I have 2 cells, 1
that sets the start date and 1 that sets the end date (usualy todays date). I
am trying to use a formula to
1)If the cell above is blank OR the date returned would not be within the
specified date range, I would like it to return "" (nothing)
2) If the cell above does indeed have a date AND that date falls in the date
ranger specified then return this (DATE(YEAR(A2),MONTH(A2)-$G$31,DAY(A2))))
with A2 being the cell right above this formula.
=IF(AND(A2="",((DATE(YEAR(A2),MONTH(A2)-$G$31,DAY(A2)))<F1)),"",(DATE(YEAR(A2),MONTH(A2)-$G$31,DAY(A2))))
A2 is the cell above
F1 Sets the start date
G31 set the number of months to subtract
I have no problem with using a different type of formula if there is a
better way to do this I am all for it.
Thanks in advance