Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
newbie04,
How do you know which values in LHS are true values and which are sums of the numbers above ? NickHK "newbie04 " wrote in message ... i have a series of data : 2 2 5 5 7 1 1 0 0 3 3 6 6 10 2 2 9 9 11 The LHS is the original data while the RHS is the data i wanna obtain. My doubts is that what is the code for summing? Thank you. --- Message posted from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi nick,
okie, my original data is shown 2 5 1 0 3 6 2 9 And i wanna get the result: 2 5 7 1 0 3 6 10 2 9 11 I know the logic to scan the empty column and do the sum, but it seem that z is not valid here. May i know why? Worksheets(a).cells(i,j)Select ActiveCell.formula = "=SUM(R[-z]C:R[-1]C) -- Message posted from http://www.ExcelForum.com |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
newbie04,
If your data is split like that, with an empty line between, one way is to use Data -- Subtotal menu to achieve what you want. That way Excel takes care of which are real values and which are (sub) totals. NickHK "newbie04 " wrote in message ... Hi nick, okie, my original data is shown 2 5 1 0 3 6 2 9 And i wanna get the result: 2 5 7 1 0 3 6 10 2 9 11 I know the logic to scan the empty column and do the sum, but it seems that z is not valid here. May i know why? Worksheets(a).cells(i,j)Select ActiveCell.formula = "=SUM(R[-z]C:R[-1]C)" --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
divide column(x) by column(y) to give column(x/y) in excel? | New Users to Excel | |||
Referencing date column A & time column B to get info from column | Excel Discussion (Misc queries) | |||
Return text in Column A if Column B and Column K match | Excel Worksheet Functions | |||
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look | Excel Discussion (Misc queries) | |||
Divide Column A by Column B multiply Column C | Excel Worksheet Functions |