Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to set a column equal to the sum of some other
columns in a macro. It is not working. Can you help. This is what I have. Range("A" & m).Value = SUM("V" & m: "V" & (n-1)) Thank you |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Two options:
Range("A" & m).formula = SUM("V" & m: "V" & (n-1)) 'puts the formula into the cell Am Range("A" & m).Value = worksheetfunction.SUM("V" & m: "V" & (n-1)) 'puts the result of the sum into cell Am wrote: I want to set a column equal to the sum of some other columns in a macro. It is not working. Can you help. This is what I have. Range("A" & m).Value = SUM("V" & m: "V" & (n-1)) Thank you |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It doesn't work. It doesn't like the colon. Thanks.
Any other thoughts? -----Original Message----- Two options: Range("A" & m).formula = SUM("V" & m: "V" & (n- 1)) 'puts the formula into the cell Am Range("A" & m).Value = worksheetfunction.SUM("V" & m: "V" & (n-1)) 'puts the result of the sum into cell Am wrote: I want to set a column equal to the sum of some other columns in a macro. It is not working. Can you help. This is what I have. Range("A" & m).Value = SUM("V" & m: "V" & (n-1)) Thank you . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yep, it wouldn't. Do like Bob says and move the colon inside the quote
for the second V. wrote: It doesn't work. It doesn't like the colon. Thanks. Any other thoughts? -----Original Message----- Two options: Range("A" & m).formula = SUM("V" & m: "V" & (n- 1)) 'puts the formula into the cell Am Range("A" & m).Value = worksheetfunction.SUM("V" & m: "V" & (n-1)) 'puts the result of the sum into cell Am wrote: I want to set a column equal to the sum of some other columns in a macro. It is not working. Can you help. This is what I have. Range("A" & m).Value = SUM("V" & m: "V" & (n-1)) Thank you . |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "JWolf" wrote in message ... Two options: Range("A" & m).formula = SUM("V" & m: "V" & (n-1)) 'puts the formula into the cell Am I think that you mean Range("A" & m).formula = "=SUM(V" & m & ":V" & (n-1) & ")" Range("A" & m).Value = worksheetfunction.SUM("V" & m: "V" & (n-1)) 'puts the result of the sum into cell Am Range("A" & m).Value = worksheetfunction.SUM("V" & m & ":V" & (n-1)) wrote: I want to set a column equal to the sum of some other columns in a macro. It is not working. Can you help. This is what I have. Range("A" & m).Value = SUM("V" & m: "V" & (n-1)) Thank you |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Range("A" & m).Value = WorksheetFunction.SUM(Range("V" & m & ":V" & (n-1))
-- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) wrote in message ... I want to set a column equal to the sum of some other columns in a macro. It is not working. Can you help. This is what I have. Range("A" & m).Value = SUM("V" & m: "V" & (n-1)) Thank you |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Summing | Excel Worksheet Functions | |||
Summing | Excel Worksheet Functions | |||
PivotTable and summing/not summing | Excel Discussion (Misc queries) | |||
Summing all BUT one... | Excel Worksheet Functions | |||
summing | Excel Programming |