Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How to indicate certain columns to be ignore in summation

First, the brief summary of what I'm trying to do, then (for the
curious) a bit more explanation.

At the left side of my spreadsheet (column A), I want to have a
summation which reads:
=SUM(b2:hx2)
In other words, I want to sum all the values across a row (say, row 2)
of the spreadsheet. At the same time, I want to exclude the numeric
values in certain columns. But I do not want to have to put a clumsy
formula like:
=SUM(b2:hx2) - n2 - z2 - ck2, etc.
Instead, is there some way to flag or mark the indicated columns (n2,
z2, ck2, etc.), so that even though they remain numeric, they are not
included in the summation =SUM(b2:hx2)?

Motivation: The spreadsheet is being used to track hours for projects.
Each row is a project, each adjacent column is hours for a given day,
and I am summing across a row to track the total hours for each
project. But I also use the columns, at intervals, to track the weekly
totals. The goal, then, is to sum the total daily hours, but ignore
the columns with the weekly totals. So, the weekly total columns need
to remain numeric (so they can sum the hours for each week), but need
to be ignored by the master summary of total hours across the row?

Doable? (Easily!?)

Thanks in advance for all replies.
Steve

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 427
Default How to indicate certain columns to be ignore in summation

Yes: use the SUBTOTAL(9,ref:ref) formula for all totals. Look up
SUBTOTAL in Help, and note the 9 is important (not a typo in this ng
post).

Cheers!
Dave O

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How to indicate certain columns to be ignore in summation

Way cool. Thank you.

Steve

Dave O wrote:
Yes: use the SUBTOTAL(9,ref:ref) formula for all totals. Look up
SUBTOTAL in Help, and note the 9 is important (not a typo in this ng
post).

Cheers!
Dave O


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
Selecting different multiple columns rcg Excel Worksheet Functions 1 September 26th 06 05:58 PM
"Text to Columns" for many columns in Excel 2003 NickName Excel Discussion (Misc queries) 12 September 8th 06 10:14 PM
adding three consecutive columns Darin Gibson Excel Worksheet Functions 1 November 22nd 05 08:50 PM
Ignore #REF! when adding columns? singlgl1 Excel Discussion (Misc queries) 2 October 28th 05 05:47 PM
Removing Near-Duplicate Rows, Leaving Those w/Most Data in Specific Columns foofoo Excel Discussion (Misc queries) 1 April 2nd 05 12:02 AM


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