+ Reply to Thread
Results 1 to 2 of 2

Sum Values Based on Categories in Different Column

  1. #1
    Registered User
    Join Date
    01-27-2010
    Location
    Atlanta
    MS-Off Ver
    Excel 2003
    Posts
    1

    Sum Values Based on Categories in Different Column

    Please help,

    I have data in Excel like below:

    Column A Column B
    Asset Class Market Weight
    Large Growth 5.5%
    Large Value 6.9%
    Large Growth 11.9%
    Small Growth 3.3%
    International 8.9%
    Small Growth 1.1%

    How do I create a formula or VBA code that will add up the total %'s for each asset class category? For example, I want the total (sum) % for all Large Growth listed?

    Thanks
    Last edited by rylo; 01-27-2010 at 07:29 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Help: Sum Values Based on Categories in Different Column

    The function you want is SUMIF(). Press F1 in Excel to read up on it the builtin helpfiles.

    Examples:
    =SUMIF(A:A, "Large Growth", B:B)
    =SUMIF($A$1:$A$100, D12, $B$1:$B$100) (where D12 has the text string "Large Growth")
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1