simple freaking sumif thats driving me crazy

Hi Excel Whizzes,

I have a very frustrating problem. All I want to do is SUM the cells within the range if they are less than or equal to another cell. For example if I have

A1 = 10

B2:B10 is data.

I want to sum every cell within B2:B10 if it is less than or equal to 10.

This is what I have

=SUMIF($B$2:$B$10, "=A1", $B$2:$B$10)

I'm getting 0 for everything...

I also want to do the same thing with countif to get an average.

Am I being clear enough? Let me know if I can elaborate.

9 Comments
 
OnTheBeachTry this: =SUMIFS($B$2:$B$10,$B$2:$B$10,">="&$A$1)

SUMIFS works in Excel 2007 and 2010. If using 2003, you need to use an array formula. Type the formula below and CTRL+SHIFT+ENTER. You'll get brackets around it if you did it correctly:

=SUM(IF($B$2:$B$10>=$A$1,$B$2:$B$10,0))

=SUMIFS($B$2:$B$10,$B$2:$B$10,"="&$A$1)

I changed the sign because it is less than or equal to, but I am returning 0...

 

you need to use the formula OnTheBeach mentioned because your criteria is only in one cell. sumif and sumifs only work when each row as the criteria.

this is an array, so its comparing each cell in column B against the criteria, and if its true returning that cell. then it's summing the array of values.

OnTheBeach Type the formula below and CTRL+SHIFT+ENTER. You'll get brackets around it if you did it correctly:

=SUM(IF($B$2:$B$10>=$A$1,$B$2:$B$10,0))

 

Amet quia hic enim eos. Labore eos eos consequatur culpa. Minus sit dolorum dolores tempora iste eius. Officia enim reiciendis officiis et alias ea.

Est dolores quia aut vero. Corporis dolorem quis architecto. Maiores modi libero possimus qui error nihil.

Dicta facere quasi consequatur aliquam et et sapiente. Fuga minus architecto consequatur id ab quia eligendi. Quod ipsum suscipit nesciunt optio necessitatibus voluptates. Ut ea voluptate tempora cumque sunt officiis. Quisquam deserunt quis dolores. Iure consequatur et molestiae aut est vel beatae aut. Mollitia ut debitis eum quia sit ullam.

Career Advancement Opportunities

November 2026 Investment Banking

  • Evercore 01 99.5%
  • Moelis & Company 01 99.0%
  • JPMorgan 01 98.4%
  • Guggenheim Partners 02 97.9%
  • Morgan Stanley 06 97.4%

Overall Employee Satisfaction

November 2026 Investment Banking

  • Moelis & Company No 99.5%
  • Morgan Stanley 02 99.0%
  • Evercore 01 98.4%
  • Banco Santander 04 97.9%
  • BMO Capital Markets 13 97.4%

Professional Growth Opportunities

November 2026 Investment Banking

  • Evercore 01 99.5%
  • Moelis & Company 01 99.0%
  • Morgan Stanley 05 98.4%
  • Goldman Sachs 01 97.9%
  • JPMorgan No 97.4%

Total Avg Compensation

November 2026 Investment Banking

  • Vice President (17) $409
  • Associates (58) $261
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (29) $183
  • Intern/Summer Associate (16) $161
  • 1st Year Analyst (84) $151
  • Intern/Summer Analyst (77) $101
notes
16 IB Interviews Notes

“... there’s no excuse to not take advantage of the resources out there available to you. Best value for your $ are the...”

Leaderboard

success
From 10 rejections to 1 dream investment banking internship

“... I believe it was the single biggest reason why I ended up with an offer...”