DHuskic
Computer
- Dec 18, 2012
- 114
I have an equation
Range("N19").Value = "=IF(K19=""The End"",SUM(Cell(ActiveCell.Row-K18,ActiveCell.Column-2)
Cell(ActiveCell.Row-1,ActiveCell.Column),"""")"
I want column N to check column K for the string "The End". Inbetween each of those phrases I have excel taking a count of how many rows down the difference between the phrases is. This is stored one row up in K, we will use K18 to hold this value. Then, in the cell this If-Then yeilds a true value, I would like the sum of the two colums left of N(L & M), and K18 rows above this cell.
Can anyone help? I keep returning errors.
Range("N19").Value = "=IF(K19=""The End"",SUM(Cell(ActiveCell.Row-K18,ActiveCell.Column-2)
I want column N to check column K for the string "The End". Inbetween each of those phrases I have excel taking a count of how many rows down the difference between the phrases is. This is stored one row up in K, we will use K18 to hold this value. Then, in the cell this If-Then yeilds a true value, I would like the sum of the two colums left of N(L & M), and K18 rows above this cell.
Can anyone help? I keep returning errors.