Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Rainhard Fischer   on Mar 14 In MS Office Category.

  
Question Answered By: Varun Mehta   on Mar 14

Try this:

For row  = totalrows To 2 Step -1
If Cells(Row, 1).Value = Cells(Row - 1, 1).Value Then
Cells(Row-1,3).Value = Cells(Row,2).Value +
Cells(Row-1,2).Value
End If
Next Row

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Help with macro Or get search suggestion and latest updates.


Tagged: