Sumif formula question

  • Thread starter Thread starter gkelle
  • Start date Start date
G

gkelle

I currently am using the formula with named ranges
=SumIf(JACap,"X",Capital)
This works fine, I would like to add another condition if another rang
"Expense" = "X" then exclude it from the total

I tried

if(Expense<>"X", SumIf(JACap,"X",Capital),0)

Any suggestions would be appreciated

TIA

(e-mail address removed)
 
Hi
try
=SUMPRODUCT(--(Expense<>"X"),--(JACap="X"),Capital)

Note: all defined names must have the same dimension. Also a reference
like A:A is not allowed
 

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