A Annette Feb 21, 2005 #1 How would I add this formula into the code on Sheet2? =SUMIF(Sheet1!B:B,"warrant",Sheet1!C:C)
T Tom Ogilvy Feb 21, 2005 #2 What does that mean - add it into the code on sheet2? If you wanted to use code to enter that formula in a cell you would do: Worksheets("Sheet2").Range("F6").Formula = _ "=SUMIF(Sheet1!B:B,""warrant"",Sheet1!C:C)"
What does that mean - add it into the code on sheet2? If you wanted to use code to enter that formula in a cell you would do: Worksheets("Sheet2").Range("F6").Formula = _ "=SUMIF(Sheet1!B:B,""warrant"",Sheet1!C:C)"
A Annette Feb 21, 2005 #3 Very intuitive and just what I needed ... this makes sense and also helps me for the other formulas! Thanks!
Very intuitive and just what I needed ... this makes sense and also helps me for the other formulas! Thanks!
P Patrick Molloy Feb 21, 2005 #4 TIP To enter formula down a column: With Range("D727") .FormulaR1C1 = "=somefunction(RC1)" End With