one Percentage increase / decrease formula in excel that full all the conditions that are mentioned below

2012 2011
1 0 0
2 0 500
3 500 0
4 500 1000
5 1000 500
6 500 (1000)
7 (1000) 500
8 (500) (1000)
9 (1000) (500)

Dear its urgent