well if you have a variable that tells you how many rows... use thatvariable something like thisrange("c" & var + 1).formula = sum("c1":"c" & var)just air code.. but i think something like this should do it