Excel/sum then?


Hi, i'm using Excel 2010.

I'm having trouble with making a formula which I want my data sum can tell which category it is.

say total SUM(A1:A4)=4, hence it shows category D,where:

SUM Category
1    A
2    B
3    C
4    D
5    E

I have 150 category. How can i solve this?

Your question is a little confusing, so I'm going to make a guess here.

1) You want to find a number in column A and get back the "category" that matches that number in column B.

      =VLOOKUP(4, A:B, 2, 0)

2) You want to SUM all the values in column A that match a specific repeating category in column B.

      =SUMIF(B:B, "D", A:A)

Does one of those do what you want?
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


All Answers

Answers by Expert:

Ask Experts


Jerry Beaucaire


Excel Formulas, macros, automation. Microsoft Excel MVP - 2010. Code site with free code snippets and techniques: http://sites.madrocketscientist.com/jerrybeaucaires-excelassistant/files


Microsoft Excel MVP - 2010. I have my own extensive Excel help/code site: http://sites.madrocketscientist.com/jerrybeaucaires-excelassistant/files ===================== I have been offering free assistance as an Excel aid on many web sites for many years: (http://www.excelforum.com - JBeaucaire) ======== (http://www.askmehelpdesk.com/spreadsheets - JBeaucaire) ======= (http://www.mrexcel.com/forum - jbeaucaire)

Bachelor's Degree from Azusa Pacific University in Mathematics and Music Composition

Awards and Honors
Microsoft Excel MVP 2010

©2017 About.com. All rights reserved.

[an error occurred while processing this directive]