nested sumif

G

Gluefoot

i need to combine 2 arguments in a SUMIF function so i can use it with Excel
2003. i'm basically trying to make it so a SUMIFS script i wrote will work in
earlier versions of Excel. here are the 2 SUMIF arguments i need to combine...

SUMIF(B1:B50, B50, F1:F50)
SUMIF(I1:I50, TRUE, F1:F50)

so i need to add the cells in F1:F50 where their corresponding value in
I1:I50 is TRUE, and the corresponding value in B1:B50 = B50.

can someone help??
 
J

John C

How about SUMPRODUCT?

=SUMPRODUCT(--($B$1:$B$50=B50),--($I$1:$I$150=TRUE),($F$1:$F$150))

Hope this helps.
 
G

Gluefoot

this worked great!. thanks a lot, i have 1 question though. what does the
"--" in front of the array do exactly?
 

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