Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() After importing a file from Access to Excel, and formatting the spreadsheet, I need to calculate a sum. The problem is that the cell references do not remain the same. The amount of rows to add depend on the information being imported. In the Macro, I have accessed the correct cell for the calculation by the "EndDown" feature. I then press the sum key on the toolbar, but it keeps the same count of rows to sum, which I mentioned differs. Is there a way to sum the rows with variance each time? Below is what I have coded for one column. (The cell "O11" is always the beginning cell for the calculation.) Range("O11").Select Selection.End(xlDown).Select ActiveCell.FormulaR1C1 = "=SUM(R[-7]C:R[-1]C)" I appreciate any help available!! Shelley -- sesmith ------------------------------------------------------------------------ sesmith's Profile: http://www.excelforum.com/member.php...o&userid=24765 View this thread: http://www.excelforum.com/showthread...hreadid=384563 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
calculate values in an unlimited range of cells in a column WITHOUTalso calculating values that had previously been filtered AGAINST? | Excel Discussion (Misc queries) | |||
How do I keep the divisor constant in calculating percentage remai | Excel Discussion (Misc queries) | |||
How to use date for calculating values in other cells | Excel Worksheet Functions | |||
Keep lookup values constant | Excel Discussion (Misc queries) | |||
Excel displaying formulae as constant and not calculating formula | Excel Worksheet Functions |