Sumifs with Variable range in criteria

HendrikP

New Member
Joined
Nov 20, 2009
Messages
3
I'm looking for a way to use the sumifs function with the criteria refrencing to a different cell, but also being a range.

Basicaly I want to change the formula :
=sumifs(a2:a10,b2:b10,"<10"), but instead of using <10 as a criteria, it must be refer to a cell (like <$C$2).

I've tried =sumifs(a2:a10,b2:b10,"<$C$2")
and =sumifs(a2:a10,b2:b10,<$C$2),
but to no avail.

Thanks
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
How about trying SUMPRODUCT?

=SUMPRODUCT(--(A2:A10 < C2),B2:B10)

Note remove the spaces around the less than sign.

I forgot the board software didn't like that and I can't remember how to post formulas including it.:)
 
Last edited:
Upvote 0
Use

=SUMIFS(A2:A10,B2:B10,"<"&$C$2)

But actually uou only need SUMIF for one condition,

=SUMIF(A2:A10,"<"&$C$2,B2:B10)

and this will be backward compatible with Excel 2003
 
Upvote 0

Forum statistics

Threads
1,215,546
Messages
6,125,459
Members
449,228
Latest member
moaz_cma

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top