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

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

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.