?
Solved

Sum Variable individual Cells within a given column

Posted on 2010-11-17
3
Medium Priority
?
369 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 93

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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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!
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

777 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