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 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.