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

Sahar Nasiri
Sahar Nasiri
7,454 Points

When I filter a column how can I calculate the total price of that filtering

I filter column category by Entertainment and F&B, but when I want to calculate the total price of these filtered objects the spreadsheet gives me the total price of all the categories, how can I calculate the total price of the filtered items?

1 Answer

Steven Parker
Steven Parker
231,198 Points

You can filter and sum at the same time using the DSUM function.

DSUM supports filters requiring multiple criteria. For filters requiring only a single criterion, you can also use the SUMIF function.