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

 

Possimus possimus adipisci at eos sed assumenda sunt. Odio doloremque enim quo consequatur et. Officia consequuntur ratione illum et autem sed suscipit. Ratione rem facilis nisi est. Consectetur est et cum quidem nihil iste non.

Career Advancement Opportunities

June 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.8%
  • JPMorgan 01 98.2%
  • Guggenheim Partners 01 97.7%
  • Morgan Stanley 07 97.1%

Overall Employee Satisfaction

June 2026 Investment Banking

  • Moelis & Company No 99.4%
  • Morgan Stanley 01 98.8%
  • Evercore 01 98.2%
  • BMO Capital Markets 12 97.6%
  • Banco Santander 01 97.1%

Professional Growth Opportunities

June 2026 Investment Banking

  • Moelis & Company No 99.4%
  • Evercore No 98.8%
  • Morgan Stanley 05 98.2%
  • JPMorgan No 97.7%
  • BMO Capital Markets 12 97.1%

Total Avg Compensation

June 2026 Investment Banking

  • Vice President (14) $434
  • Associates (43) $259
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (22) $179
  • Intern/Summer Associate (13) $156
  • 1st Year Analyst (75) $151
  • Intern/Summer Analyst (66) $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
kanon's picture
kanon
99.0
3
BankonBanking's picture
BankonBanking
99.0
4
Secyh62's picture
Secyh62
99.0
5
Betsy Massar's picture
Betsy Massar
98.9
6
dosk17's picture
dosk17
98.9
7
GameTheory's picture
GameTheory
98.9
8
CompBanker's picture
CompBanker
98.9
9
DrApeman's picture
DrApeman
98.9
10
bolo up's picture
bolo up
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...”