From the Analysis Toolpak, use the FVSCHEDULE function
=FVSCHEDULE(1,Rng)^(MIN(1,12/COUNT(Rng)))-1
In addition, Seti's PRODUCT formula will give you the correct cumulative, unannualized result. To annualize it, do the following:
=PRODUCT(1+Rng)^(MIN(1,12/COUNT(Rng)))-1
(assumes 12 monthly periods per year, else change the 12 to the number per year)
This must be array-entered.
The convention is to only annualize if you have > than one year of data. If you want sub annual periods annualized, take out the MIN function call, leaving only the 12/COUNT(Rng) as the exponent