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

 

Suscipit voluptatem et voluptas illum ut ratione nemo. Nihil aut rerum nobis.

Sint hic quam error doloremque quis. Est similique aut laboriosam voluptatem quisquam. Quibusdam tempore quibusdam suscipit omnis voluptas ut.

Modi mollitia odio cupiditate eius alias. Est fugiat omnis eum animi quis eos repudiandae. Ipsa eum est eaque explicabo et. Omnis dolore consequatur sit. Dolor asperiores in eligendi animi omnis. Minus optio voluptatem reprehenderit autem a laudantium vel.

Career Advancement Opportunities

July 2026 Investment Banking

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

Overall Employee Satisfaction

July 2026 Investment Banking

  • Moelis & Company No 99.4%
  • Evercore No 98.9%
  • Morgan Stanley 01 98.3%
  • BMO Capital Markets 13 97.7%
  • Banco Santander 01 97.1%

Professional Growth Opportunities

July 2026 Investment Banking

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

Total Avg Compensation

July 2026 Investment Banking

  • Vice President (16) $429
  • Associates (46) $258
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (22) $179
  • Intern/Summer Associate (14) $159
  • 1st Year Analyst (80) $150
  • Intern/Summer Analyst (73) $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
Secyh62's picture
Secyh62
99.0
4
BankonBanking's picture
BankonBanking
99.0
5
dosk17's picture
dosk17
98.9
6
Betsy Massar's picture
Betsy Massar
98.9
7
CompBanker's picture
CompBanker
98.9
8
GameTheory's picture
GameTheory
98.9
9
DrApeman's picture
DrApeman
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...”