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))

 

Natus voluptas culpa commodi nisi occaecati veniam. Quia corporis nihil id autem sapiente odio. Repellendus possimus non perferendis deserunt tempore dolorem unde. Cumque sit blanditiis harum. Nulla veritatis dolorum impedit sunt exercitationem iste. Reiciendis animi consequuntur vel.

Dolor voluptate eaque nisi quibusdam qui. Eaque repellat occaecati autem quam. Labore nulla voluptatem enim dolores. Qui eos quod dolorem voluptate aut. Enim rerum animi vel voluptas illum. Accusantium eum omnis voluptas aut animi animi quia.

Career Advancement Opportunities

October 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

October 2026 Investment Banking

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

Professional Growth Opportunities

October 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

October 2026 Investment Banking

  • Vice President (16) $429
  • Associates (57) $264
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (28) $184
  • Intern/Summer Associate (16) $161
  • 1st Year Analyst (84) $151
  • Intern/Summer Analyst (76) $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...”