Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default Summing a Range

Hi Norma,

Application.Worksheetfunction.sum(range(cells(2,1) ,cells
(2,256))) give you the sum of row 2 regardless wheather
the cell is empty or no empty.

Best Regards

Bill

-----Original Message-----
I am working in VB for Aps. I am trying to sum a row of
cells, I don't know how many cells will be involved (the
number of cells will always vary). I am at a deadend!!
Anyone have any suggestions??

Norma
.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Summing a Range

How about
Application.Worksheetfunction.sum(rows(2))
then.

--
Regards,
Tom Ogilvy


Bill Li wrote in message
...
Hi Norma,

Application.Worksheetfunction.sum(range(cells(2,1) ,cells
(2,256))) give you the sum of row 2 regardless wheather
the cell is empty or no empty.

Best Regards

Bill

-----Original Message-----
I am working in VB for Aps. I am trying to sum a row of
cells, I don't know how many cells will be involved (the
number of cells will always vary). I am at a deadend!!
Anyone have any suggestions??

Norma
.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Summing a range of cells based on criteria in another range Jack Excel Worksheet Functions 2 November 5th 09 01:46 AM
Summing up range of data Krish Excel Worksheet Functions 1 November 6th 07 10:46 PM
Summing a Range With N/A's SamuelT Excel Discussion (Misc queries) 3 June 19th 06 04:51 PM
Summing between Range cb3291u Excel Discussion (Misc queries) 2 May 31st 06 04:46 PM
Summing a range that changes Jeff Excel Discussion (Misc queries) 6 January 9th 06 10:57 PM


All times are GMT +1. The time now is 04:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"