Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Fahimah Khan   on Sep 06 In MS Office Category.

  
Question Answered By: Sebastien Anderson   on Sep 06

just test for null (or maybe "") before adding, if it fails the
test just more on.

dim total
dim row
dim col

col = 2


For Row = 1 to 10

if not isNull(cells(row,col).value) then
total = total + cells(row,col).value
end if

next row

Share: 

 
 
Didn't find what you were looking for? Find more on SUM content of rows Or get search suggestion and latest updates.


Tagged: