Solved

Sum Variable individual Cells within a given column

Posted on 2010-11-17
3
337 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
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now