Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SUMPRODUCT in VBA

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
My formula is the following but Vb doesnt accept it; I don't find the mistake

Activecell.FormulaR1C1 = "=SUMPRODUCT((R[+" & nbrLign & "]C:R[+1]C);(R[+" & nbrLign & "]C[-1]:R[+1]C[-1]))"
 
wo,

Try replacing the semi-colon (;) with a colon :)). This is the correction Excel makes to your formula (when typed in directly to the worksheet):

Activecell.FormulaR1C1 = "=SUMPRODUCT((R[+" & nbrLign & "]C:R[+1]C):(R[+" & nbrLign & "]C[-1]:R[+1]C[-1]))"


HTH
M. Smith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top