Anju Vedula
New Member
Hi,
I am looking for a formula which picks the current month and year from the range of dates and picks the corresponding row value from the range. For example, I have
A B C
2 October 5, 2013 10
3 November 5, 2013 15
4 December 5, 2013 18
5 January 5, 2014 23
6 February 5, 2014 24
Now, what I want is, if we are in the month of January 2014 I want 23 and If I am in December 2013 I want 18. I tried this formula, but I am getting error. I know that I am doing wrong, but I can't figure the correct formula.
=VLOOKUP(TEXT(now(), "mmm-yy"), TEXT(if(B2:B6, "<"&now(), B2:B6), "mmm-yy"), C2:C6)
I am looking for a formula which picks the current month and year from the range of dates and picks the corresponding row value from the range. For example, I have
A B C
2 October 5, 2013 10
3 November 5, 2013 15
4 December 5, 2013 18
5 January 5, 2014 23
6 February 5, 2014 24
Now, what I want is, if we are in the month of January 2014 I want 23 and If I am in December 2013 I want 18. I tried this formula, but I am getting error. I know that I am doing wrong, but I can't figure the correct formula.
=VLOOKUP(TEXT(now(), "mmm-yy"), TEXT(if(B2:B6, "<"&now(), B2:B6), "mmm-yy"), C2:C6)