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 Spreadsheet Functions & Shortcuts Review More Spreadsheet Functions

Quiz question, Formula keeps disappearing from Spreadsheet

I'm trying to do the quiz question:

Click this link to open a copy of a spreadsheet: Expenses spreadsheet.

Use the SUMIF function to calculate the total value of all F&B expenses. The total value is $

I'm entering the following as my formula: =SUMIF(A3:A176,"F&B",C3:C176)

When I compare this to the formula in the SumIf video, I don't see any difference in syntax, yet when I hit enter, the formula I typed disappears and is just replaced with a zero. I've been trying to figure this out for a week now. I've looked at Google's documentation and haven't found anything helpful. What Am I missing??

Michael Watson
Michael Watson
Treehouse Teacher

Hey Renee Rhodes please let me know if you think there's something I can do to explain the concept more clearly. Feedback is always welcome :)

2 Answers

Paul Bentham
Paul Bentham
24,090 Points

You have the wrong Range.

You need to look in the range in Column C for "F&B" and sum up the relevant cells in Column B

So it should be: =SUMIF(C3:C176,"F&B",B3:B176)

Thanks, I thoughtI already tried that but I guess not.