Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Brittany Daniels
Brittany Daniels
512 Points

Is the "total dollar value" of two categories in a spreadsheet found by filtering the two categories and sum the column?

I am coming up with an incorrect answer every time. I filter out the requested categories, then use a sum formula at the bottom of that column. Is it totaling the rest of the categories that are hidden? Thanks in advance!

1 Answer

Kim B
Kim B
4,184 Points

Yeah, filtering won't filter values out of an equation. You could use a sumif formula:

=sumif(C3:C,"Entertainment",B3:B)+sumif(C3:C,"F&B",B3:B)

Or, filter out for just the F&B and Entertainment categories, then click the little box in the bottom right of the Gsheet and look at the Sum value.