Sumifs - greater than criteria with a Cell Reference

D

Dweid

2007 excel sumifs problem,

I am trying to us a sumif with multiple ranges and criteria but am having on
bug, with cell referenceing when using it with a greater or less than
criteria.

Example
sumifs(sum range, criteria range, <(G6))
where G6 equalls and input cell.
When I substitiute G6 with "<10" it works but when using a cell reference
instead of 10, nothing works.
Thanks.

David
 
D

Dave Peterson

=sumif(criteriarange,"<"&g6,sumrange)

Not sure why you want to use =sumifs().
 
P

PCLIVE

You could use SUMPRODUCT.

=SUMPRODUCT(--(Criteria_Range<G6),Sum_Range)

=SUMPRODUCT(--(A1:A20<G6),A1:A20)

HTH,
Paul
 
D

Dweid

I have multiple criteria and ranges.

Anyway your answer worked ("<"&g6)

Thanks for your help.
 

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