#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
LoriD
 
Posts: n/a
Default Excluding cells

I have the following:

1/1/88 10 9
2/5/88 9 8
TOTAL 19 17

2/1/89 20 18
4/4/89 15 15
TOTAL 35 33

5/5/90 10 8

GRAND TOTAL 64 58

How do I write a formula so that the Grand Total would add all the numbers
EXCEPT the numbers on the lines of the TOTALS?

THANKS
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ufo_pilot
 
Posts: n/a
Default Excluding cells

in the cell you need the results
=SUM then hold down the Ctrl and select the cells that you need to sum.

"LoriD" wrote:

I have the following:

1/1/88 10 9
2/5/88 9 8
TOTAL 19 17

2/1/89 20 18
4/4/89 15 15
TOTAL 35 33

5/5/90 10 8

GRAND TOTAL 64 58

How do I write a formula so that the Grand Total would add all the numbers
EXCEPT the numbers on the lines of the TOTALS?

THANKS

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Excluding cells

Try one of these:

Use the SUBTOTAL function instead of the SUM function for both subtotals and
for the grand total. The SUBTOTAL function ignores other SUBTOTALS.
Example:=SUBTOTAL(9,B1:B10)

The 9 argument tells the subtotal function to ADD. Other arguments indicate
usage of MAX, MIN, AVG, etc)

OR
Use SUMIF.
Example:
=SUMIF(A1:A10,"<TOTAL",B1:B10)

Does that help?

Regards,
Ron


"LoriD" wrote:

I have the following:

1/1/88 10 9
2/5/88 9 8
TOTAL 19 17

2/1/89 20 18
4/4/89 15 15
TOTAL 35 33

5/5/90 10 8

GRAND TOTAL 64 58

How do I write a formula so that the Grand Total would add all the numbers
EXCEPT the numbers on the lines of the TOTALS?

THANKS

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
LoriD
 
Posts: n/a
Default Excluding cells

Ron - worked perfectly!!!
THANKS

"Ron Coderre" wrote:

Try one of these:

Use the SUBTOTAL function instead of the SUM function for both subtotals and
for the grand total. The SUBTOTAL function ignores other SUBTOTALS.
Example:=SUBTOTAL(9,B1:B10)

The 9 argument tells the subtotal function to ADD. Other arguments indicate
usage of MAX, MIN, AVG, etc)

OR
Use SUMIF.
Example:
=SUMIF(A1:A10,"<TOTAL",B1:B10)

Does that help?

Regards,
Ron


"LoriD" wrote:

I have the following:

1/1/88 10 9
2/5/88 9 8
TOTAL 19 17

2/1/89 20 18
4/4/89 15 15
TOTAL 35 33

5/5/90 10 8

GRAND TOTAL 64 58

How do I write a formula so that the Grand Total would add all the numbers
EXCEPT the numbers on the lines of the TOTALS?

THANKS

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
how do i protect cells in a shared worksheet Debi Excel Discussion (Misc queries) 3 September 30th 05 11:15 PM
Deselect Cells while using ctrl Sloth Excel Discussion (Misc queries) 5 July 14th 05 10:58 PM
Fill cells from non-adjacent cells Abes Excel Discussion (Misc queries) 2 March 25th 05 01:15 PM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM


All times are GMT +1. The time now is 09:47 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"