You are here:

Excel/Excel totaling catorgories

Advertisement


Question
QUESTION: Bill, Thanks for taking my question. I have sheet names "Spendings" and I would like to have anything that says "Food" in b2:b999 add up in b3 on sheet 2, likewise, if it says "Gas" i'd like that to be totaled in b4 on sheet2. How do i do this?
Thanks,
Kevin

ANSWER: Kevin,

   What version of Excel are you using?

  >>Bill

---------- FOLLOW-UP ----------

QUESTION: I have windows vista with office 7.

Thanks again.

Answer
Kevin,

   You can use the SUMIF function to do exactly this.  I shouldn't have bother to ask about Excel versions, because SUMIF exists in both 2003 and 2007.

   Use the multiple-range form of SUMIF; one range will be the criterion range, and the other will be the range which actually gets summed.  You'll need one SUMIF for each spending category.


  >>> Bill  
About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

Excel

All Answers


Answers by Expert:


Ask Experts

Volunteer


Bill Hermanson

Expertise

Please tell me WHICH EXCEL VERSION you are using!

DO NOT ASK ME me about Macros or VBA.

Please read my "instructions to questioners" in my full profile [use View Profile, at right], to help you write a question that I can understand, without having to ask you what you mean.

If your question contains any of the words THIS, IT, THAT, THOSE, or THEY, I likely won't understand IT. Please rewrite!

My Expertise: I am an expert at data manipulation, the use of incredibly complex logical statements, databases, combining tables and extracting data, all the LOGICAL, LOOKUP & REFERENCE functions, dynamic ranges, creating professional appearing spreadsheets, complex functions, integrated charts and visual displays, user interfaces.... I can make Excel do anything!

But PLEASE... NO MACRO or VBA QUESTIONS!

Experience

25 years development of complex spreadsheets for personal and professional use. I've developed hundreds (or thousands!) of spreadsheets in all fields, from complex engineering calculations to game scoring, financial analysis, scheduling, cost-of-doing-business, and analysis of home energy use. I even used Excel to assist in design of the flight computers presently on board the Hubble Space Telescope (1984-1991)

Education/Credentials
BSEE Electrical Engineering, CU Boulder CO USA
Use of spreadsheets since 1982
Boulder Valley School District, Life Long Learning, Instructor
Owner & Operator of Excel Expert, LLC

©2012 About.com, a part of The New York Times Company. All rights reserved.