How to indicate certain columns to be ignore in summation

S

steveqdr

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
 
D

Dave O

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top