Home |
Search |
Today's Posts |
#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/ |
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 |