A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Annette wrote:
I need a formula that 2010 sales minus 2009 sales divided by 2009 will show some type of number always either positive or negative. If there is nothing entered in either column, don't show anything.
If 2009 sales is in A2 and 2010 sales is in B2, then:
=IF(N(A2)*N(B2)=0,"",B2/A2-1)
formatted as Percentage.
That always "doesn't show anything" if there is "nothing" (no sales), including zero, in either column, as you requested.
The N() function returns 0 even if the cell contains the null string (""), like the above formula might return.
But I would say that if there were sales in 2009 and no sales in 2010, there is a change of -100%. If you agree, I would suggest:
=IF(N(A2)=0,"",N(B2)/A2-1)