tricky sum problem

D

Dave F

I have a range of cells, E64:p75, which need to be summed. Each column of
cells in this range (i.e., E64:E75, F64:F75, etc.) is categorized as either
"project" or "BAU"

I want two sums calculated from this range: total project and total BAU.
Here's the tricky part: the categorization of a particular column in this
range as either "project" or "BAU" is in row 59.

How can I do this? I can, in theory do the sum by color routine, as
conditional formatting has been applied to this range based on the
categorizations explained above. However, I would like to avoid VBA, as my
boss seems suspicious of it.

Any thoughts on how to do this with formulas?

Thanks,

Dave
 
E

Elkar

You could add a new row (let's say 76), then use this row to perform a SUM on
each individual column. Then, use the SUMIF function to find your totals.

=SUMIF(E59:p59,"project",E76:p76)

=SUMIF(E59:p59,"BAU",E76:p76)

HTH,
Elkar
 
K

Ken Johnson

Dave said:
I have a range of cells, E64:p75, which need to be summed. Each column of
cells in this range (i.e., E64:E75, F64:F75, etc.) is categorized as either
"project" or "BAU"

I want two sums calculated from this range: total project and total BAU.
Here's the tricky part: the categorization of a particular column in this
range as either "project" or "BAU" is in row 59.

How can I do this? I can, in theory do the sum by color routine, as
conditional formatting has been applied to this range based on the
categorizations explained above. However, I would like to avoid VBA, as my
boss seems suspicious of it.

Any thoughts on how to do this with formulas?

Thanks,

Dave
Hi Dave,

=SUMPRODUCT((E65:p75)*(E59:p59="project"))
=SUMPRODUCT((E65:p75)*(E59:p59="BAU"))

Ken Johnson
 
D

Dave F

Thanks. I thought of this, however, the way the workbook is formatted I'm
not sure I can add the extra row. But thanks.
 

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