tricky sum problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
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
 
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

Back
Top