Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default formula question

I would like to try summing all of the rows of data at the
end of the transactions. I tried the formula below but I
get an error.

The problem is that the last row will always be different,
so I want to set a variable to identify that row.

ActiveCell.FormulaR1C1 = "=SUM(R[lastrow1]C:R[-2]C)"

Any help would be greatly appreicated. Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default formula question

Hi
try:
ActiveCell.FormulaR1C1 = "=SUM(R[" & lastrow1 & "]C:R[-2]C)"

--
Regards
Frank Kabel
Frankfurt, Germany
"JT" schrieb im Newsbeitrag
...
I would like to try summing all of the rows of data at the
end of the transactions. I tried the formula below but I
get an error.

The problem is that the last row will always be different,
so I want to set a variable to identify that row.

ActiveCell.FormulaR1C1 = "=SUM(R[lastrow1]C:R[-2]C)"

Any help would be greatly appreicated. Thanks



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie Formula Question - how to get formula to repeat in each subsequent row? [email protected] New Users to Excel 2 January 10th 10 05:02 PM
if formula question Theresa Excel Discussion (Misc queries) 3 October 6th 08 11:20 PM
formula question JaneSmith Excel Worksheet Functions 2 June 18th 08 05:22 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
Formula question Jeffrey Excel Discussion (Misc queries) 2 July 1st 05 06:57 PM


All times are GMT +1. The time now is 04:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"