Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Data Analysis Spreadsheet Basics Getting Started With Spreadsheets Getting Started With Spreadsheets Review

CadenceH Cha
CadenceH Cha
409 Points

I sorted column C into F&B and Entertainment. How can I get the sum of **only** the prices that show in column B?

I sorted column C into F&B and Entertainment. How can I get the sum of only the prices that show in column B?

  • I tried =sum (d8: d178) However, the value is 7003, which is incorrect.

1 Answer

Steven Parker
Steven Parker
231,268 Points

Your formula shows that you are summing from column "d". Did you mean to write "b" instead? You did get a number total, so I suspect that may be the case.

But even so, you're summing 171 rows (from 8 to 178), which is too many. There are only 113 items in the "F&B" and "Entertainment" categories. Take another look at the rows that contain those categories after sorting, and update the range in the "sum" formula to cover only those.