The .formula part takes the formula inside the cell, and the .value takes only the value that you can see.

A1 = 2 A2 = 4 A3 = 6
In A3 there is a formula =A1+A2 , if you use .formula to put the formula inside cellVal1 using cellVal1 = Cells(3, 1).Formula (i.e. Range("A3").formula ), you get =A1+A2 , but if you use .value , you got 6 . Remember, if you try to save a string inside an int variable, you will get an error because the formula is a string.
TIP: if you use .formulaR1C1 , you will get =R[-2]C+R[-1]C
source share