Solved

Sum Variable individual Cells within a given column

Posted on 2010-11-17
3
367 Views
Last Modified: 2012-05-10
     I have a need to sum variable cells within a colimn the attached formula give me a ref error. I have varified that each of the cells have a valid entry for summation.

Range(Cells(SummaryR5, 2).Address & ":" & Cells(SummaryR5, 13).Address).Formula = _
        "=SUM(Indirect(Address(" & SummaryR + 2 & ",COLUMN())& "","" &Address(" & SummaryR2 & ",COLUMN())& "","" &Address(" & SummaryR4 & ",COLUMN())))"

Open in new window

0
Comment
Question by:bearblack
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 34155831
Please use a couple of sentences to describe what the formula is supposed to do.

A sample file illustrating the goal would be most helpful :)
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 34155839
Try:

Range(Cells(SummaryR5, 2), Cells(SummaryR5, 13)).FormulaR1C1 = _
        "=SUM(R" & SummaryR + 2 & "C,R" & SummaryR2 & "C,R" & SummaryR4 & "C)"
0
 
LVL 2

Author Comment

by:bearblack
ID: 34155899
Tried to make it to hard -- Thanks
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question