Hiya guys,
I'm trying to write an IF statement in Excel 2010.
What I am doing is:
IF [Cell with Date in it]
is in the last month then put an 'a' in the current cell
IF the same cell is 2 months ago then put a 'b'
IF the same cell is 3 months ago then put a 'c'
Otherwise put a 'd'
At the moment I have 3 columns somewhere that have the last 3 months, 1 in each column. And my IF statement reads off the dates I am looking at against those, but I'm looking for a more accurate way of doing this. This is my current statement:
If anyone has a way I can streamline this, I'm mainly thinking of speed, I'd be grateful.
I'm trying to write an IF statement in Excel 2010.
What I am doing is:
IF [Cell with Date in it]
is in the last month then put an 'a' in the current cell
IF the same cell is 2 months ago then put a 'b'
IF the same cell is 3 months ago then put a 'c'
Otherwise put a 'd'
At the moment I have 3 columns somewhere that have the last 3 months, 1 in each column. And my IF statement reads off the dates I am looking at against those, but I'm looking for a more accurate way of doing this. This is my current statement:
Code:
=IF(D2>=H2,"a",IF(D2>=I2,"b",IF(D2>=J2,"c","d")))