#1   Report Post  
Peter
 
Posts: n/a
Default Totalling lists

I want to add a total to lists of variable lengths when I don't know how long
the list will be. I want to do this by formula and not using the subtotal
function. Any ideas? Thanks.
--
Peter
London, UK
  #2   Report Post  
Domenic
 
Posts: n/a
Default

Assuming that Column A contains your list and the first row contains
your label, try...

=SUM(A2:INDEX(A:A,MATCH(9.9999999999999E+307,A:A)) )

Hope this helps!

In article ,
"Peter" wrote:

I want to add a total to lists of variable lengths when I don't know how long
the list will be. I want to do this by formula and not using the subtotal
function. Any ideas? Thanks.

  #3   Report Post  
Anne Troy
 
Posts: n/a
Default

Hi, Peter. Same Peter? :)
What I usually do in this case is put my headings in Row 2 and my totals in
Row 1, where the formula in Row 1 might be something like =Sum(A3:A65536).
************
Anne Troy
www.OfficeArticles.com

"Peter" wrote in message
...
I want to add a total to lists of variable lengths when I don't know how
long
the list will be. I want to do this by formula and not using the subtotal
function. Any ideas? Thanks.
--
Peter
London, UK



  #4   Report Post  
Peter
 
Posts: n/a
Default

Thanks both!
--
Peter
London, UK


"Peter" wrote:

I want to add a total to lists of variable lengths when I don't know how long
the list will be. I want to do this by formula and not using the subtotal
function. Any ideas? Thanks.
--
Peter
London, UK

  #5   Report Post  
Anne Troy
 
Posts: n/a
Default

Dominic: I'd like to add that to my articles. Can you describe it? I'd LOVE
that. :)
************
Anne Troy
www.OfficeArticles.com

"Domenic" wrote in message
...
Assuming that Column A contains your list and the first row contains
your label, try...

=SUM(A2:INDEX(A:A,MATCH(9.9999999999999E+307,A:A)) )

Hope this helps!

In article ,
"Peter" wrote:

I want to add a total to lists of variable lengths when I don't know how
long
the list will be. I want to do this by formula and not using the subtotal
function. Any ideas? Thanks.





  #6   Report Post  
Domenic
 
Posts: n/a
Default

Hi Anne! It would be my pleasure... :)

As you can see, since the 'Match Type' for the MATCH function is
omitted, it defaults to 1.

As such, the MATCH function searches for the largest value that is less
than or equal to the lookup value and returns its relative position.

Here, the lookup value is 9.9999999999999E+307, which is the highest
number that Excel recognizes. It's a number that won't likely occur in
the range. So MATCH finds the last numerical value in the range and
returns its position.

This number is then used as an argument for the INDEX function which in
turn returns a reference....

=SUM(A2:<Reference Returned by INDEX/MATCH)

Hope this helps!

In article ,
"Anne Troy" wrote:

Dominic: I'd like to add that to my articles. Can you describe it? I'd LOVE
that. :)
************
Anne Troy
www.OfficeArticles.com

"Domenic" wrote in message
...
Assuming that Column A contains your list and the first row contains
your label, try...

=SUM(A2:INDEX(A:A,MATCH(9.9999999999999E+307,A:A)) )

Hope this helps!

In article ,
"Peter" wrote:

I want to add a total to lists of variable lengths when I don't know how
long
the list will be. I want to do this by formula and not using the subtotal
function. Any ideas? Thanks.

  #7   Report Post  
Anne Troy
 
Posts: n/a
Default

Terrific. I like to give credit where credit is due. Can I use your name? If
so, provide how you'd like it to appear. I'm happy to provide a link to your
web if you have one. :)
************
Anne Troy
www.OfficeArticles.com

"Domenic" wrote in message
...
Hi Anne! It would be my pleasure... :)

As you can see, since the 'Match Type' for the MATCH function is
omitted, it defaults to 1.

As such, the MATCH function searches for the largest value that is less
than or equal to the lookup value and returns its relative position.

Here, the lookup value is 9.9999999999999E+307, which is the highest
number that Excel recognizes. It's a number that won't likely occur in
the range. So MATCH finds the last numerical value in the range and
returns its position.

This number is then used as an argument for the INDEX function which in
turn returns a reference....

=SUM(A2:<Reference Returned by INDEX/MATCH)

Hope this helps!

In article ,
"Anne Troy" wrote:

Dominic: I'd like to add that to my articles. Can you describe it? I'd
LOVE
that. :)
************
Anne Troy
www.OfficeArticles.com

"Domenic" wrote in message
...
Assuming that Column A contains your list and the first row contains
your label, try...

=SUM(A2:INDEX(A:A,MATCH(9.9999999999999E+307,A:A)) )

Hope this helps!

In article ,
"Peter" wrote:

I want to add a total to lists of variable lengths when I don't know
how
long
the list will be. I want to do this by formula and not using the
subtotal
function. Any ideas? Thanks.



  #8   Report Post  
Domenic
 
Posts: n/a
Default

Actually, I don't have a website. This is purely a hobby for me. But
thank you very much for your consideration.

Cheers!

In article ,
"Anne Troy" wrote:

Terrific. I like to give credit where credit is due. Can I use your name? If
so, provide how you'd like it to appear. I'm happy to provide a link to your
web if you have one. :)
************
Anne Troy
www.OfficeArticles.com

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
Using/referencing custom lists KR Excel Worksheet Functions 1 September 21st 05 07:26 PM
loop trough e-mail address list to send task lists with outlook Paul. Excel Discussion (Misc queries) 2 April 14th 05 11:48 AM
Comparing lists of map references simonralph Excel Worksheet Functions 0 April 8th 05 01:18 PM
Dropdown lists metrueblood Excel Discussion (Misc queries) 1 February 10th 05 12:17 AM
Comparing 2 Customer Lists to Identify Shared Customers carl Excel Worksheet Functions 2 January 26th 05 07:17 PM


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

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"