you can also use worksheet formulas to do this without vba