'ignore' cells in calculating?

R

Rick C.

I'm new to Excel. I have a simple column of numbers I'm summing. Is
there a way I can flag selected cells in this column for Excel to ignore
in its calculation? I'd occasionally like to sum ~all~ the cells in the
column, but at other times to sum only those I've not flagged as
'ignore'. Thanks.
 
M

Mike

You could set up a column beside your current column which
would contain TRUE or FALSE (either manually entered, or
using a formula). Then use the SUMIF function. For
example if you had this situation, and used =SUMIF
(B1:B7,TRUE,A1:A7) the result would be 57.

A B
5 True
6 False
7 True
8 False
10 True
35 True
13 False
 
B

Bob Phillips

.... or if there is a hard and fast rule in the data for what gets ignored,
such as say anything less than 10, you could test that
=SUMIF(A1:A7,">=10",A1:A7)
 

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