Hi ,
I will also try again !
You have two cells A2 and B1 ; at present , both these cells have drop-downs in them , through which you can select from two lists , the one for A2 going from Jan-11 through Dec-11 , and the one for B1 going from Jan-12 through Dec-12.
You wish to do away with the drop-down in B1 , and put in a formula there , so that whenever a selection is made in A2 , a corresponding entry , one year from the selection in A2 , is shown in B1.
What I want to repeat is that the method used to get B1 from A2 will depend on what type of data is present in A2 ; is it numeric ( dates are also numeric in type ) , or is it text ?
If you wish to find out this , do the following :
Make any selection in A2 , and change the cell format to Number ; see what is displayed. If it is a number , then what you have in A2 is a number. If it is not a number , then what you have in A2 is text.
If it is text , then the following formula will give you a text value , with the year increasing by 1 :
=TEXT(DATE(YEAR(A2)+1,MONTH(A2),DAY(A2)),"mmm-yy")
If it is a number , then the following formula will give you a number , with the year increasing by 1 :
=DATE(YEAR(A2)+1,MONTH(A2),DAY(A2))
In the latter case , you will have to format the cell B1 with a custom date format "mmm-yy".
The main thing is to retain the original cell format , and get the original data type , when you switch from getting B1 using a drop-down , to getting B1 using a formula.
Narayan