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

 

Sed labore provident incidunt dolor nemo natus. Veritatis accusamus quisquam quia eum. Quia et et iste adipisci non quia est. Necessitatibus deserunt non assumenda nisi ut.

Ea ipsum atque reiciendis nulla quis non fuga. Ea eaque et numquam ab placeat deserunt nihil. Dolores vel rerum nihil deleniti nisi. Nesciunt eum facere voluptatem sit ipsa quod omnis quis.

Career Advancement Opportunities

August 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.9%
  • JPMorgan 01 98.3%
  • Morgan Stanley 08 97.8%
  • Goldman Sachs 02 97.2%

Overall Employee Satisfaction

August 2026 Investment Banking

  • Moelis & Company No 99.4%
  • Evercore No 98.9%
  • Morgan Stanley 01 98.3%
  • Banco Santander 02 97.8%
  • BMO Capital Markets 12 97.2%

Professional Growth Opportunities

August 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.9%
  • Morgan Stanley 06 98.3%
  • Goldman Sachs 01 97.8%
  • JPMorgan 01 97.2%

Total Avg Compensation

August 2026 Investment Banking

  • Vice President (16) $429
  • Associates (48) $259
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (25) $178
  • Intern/Summer Associate (14) $159
  • 1st Year Analyst (83) $151
  • Intern/Summer Analyst (75) $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

1
redever's picture
redever
99.2
2
BankonBanking's picture
BankonBanking
99.0
3
Secyh62's picture
Secyh62
99.0
4
kanon's picture
kanon
99.0
5
dosk17's picture
dosk17
98.9
6
GameTheory's picture
GameTheory
98.9
7
CompBanker's picture
CompBanker
98.9
8
DrApeman's picture
DrApeman
98.9
9
Betsy Massar's picture
Betsy Massar
98.9
10
Mimbs's picture
Mimbs
98.8
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...”