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

I have sets of cells that are maybe 7 columns wide by 5 rows deep,
followed by another 12 columns wide by 2 rows deep, then another just
5 rows by 5 columns.

Something similar to
http://spreadsheets.google.com/ccc?k...RycNcWUQ&hl=en

How would I create a function that passes the sum of any grid to a
varable, no matter the dimension of the grid?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Sum a Range of Cells

myVar = Application.Sum(Activecell.CurrentRegion)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"wutzke" wrote in message
...
I have sets of cells that are maybe 7 columns wide by 5 rows deep,
followed by another 12 columns wide by 2 rows deep, then another just
5 rows by 5 columns.

Something similar to
http://spreadsheets.google.com/ccc?k...RycNcWUQ&hl=en

How would I create a function that passes the sum of any grid to a
varable, no matter the dimension of the grid?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Sum a Range of Cells

On Aug 31, 4:59*am, "Bob Phillips" wrote:
myVar = Application.Sum(Activecell.CurrentRegion)

thanks that was great help
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Sum a Range of Cells

Thanks Bob.



On Aug 31, 4:59*am, "Bob Phillips" wrote:
myVar = Application.Sum(Activecell.CurrentRegion)


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
Determine if range has NO Blank Cells without looping through each cell in range Excelenator[_29_] Excel Programming 4 August 4th 06 06:30 AM
how to compute a range of cells based on another range of cells? HAROLD Excel Worksheet Functions 1 December 30th 05 09:32 PM
how to compute a range of cells based on another range of cells? HAROLD Excel Worksheet Functions 2 December 30th 05 07:55 PM
Compare a selected Range with a Named range and select cells that do not exist PCLIVE Excel Programming 1 October 18th 05 07:09 PM
Copy a formula to a range of cells via VB6 using .Range(Cells(row,col), Cells(row,col)).Formula= statement Kevin Excel Programming 7 October 5th 04 08:11 PM


All times are GMT +1. The time now is 02:02 AM.

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

About Us

"It's about Microsoft Excel"