vba average code example Example: average vba l = Cells(i, 12).Value m = Cells(k, 12).Value Cells(j, 20).Value = [Average (l : m)]