+ Reply to Thread
Results 1 to 3 of 3

Adding columns and categories automatically

Hybrid View

  1. #1
    Registered User
    Join Date
    02-20-2009
    Location
    Kansas City
    MS-Off Ver
    Excel 2007
    Posts
    1

    Adding columns and categories automatically

    I have a table with four columns Date, Category, Amount, and Description. I want to keep a total of all categories in separate fields. I know I could create a pivot table but as far as I know this would require me to create a new pivot table every time I add a new row to the table. I would like the total category fields to add up automatically when I add a new line.

    I am sure there is an easy way to accomplish this.

    Thanks in advance.

    Example
    Date----Category----Amount----Description
    Feb 2    Tests       10          xxxx
    Feb 3    Code        20          xxxx
    Feb 4    Req         30          xxxx
    Feb 5    Code        20          xxxx
    Feb 6    Design      10          xxxx
    Feb 7    Tests       20          xxxx
    Other fields

    Category-----Total
      Tests       30
      Code        40
      Req         30
      Design      10
    Last edited by Leith Ross; 02-23-2009 at 04:21 AM. Reason: Added Code Tags for formatting

  2. #2
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Need help please

    Please edit your title in accordance with forum rules. We request this in order to add to threads searchable by description for people with similar questions in the future.

    Something along the lines of "Sum dependant upon other columns".

    If you could kindly change the name of your thread, I'll provide you with the solution you're looking for.
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

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

    Re: Adding columns categories automatically

    You're looking for a SUMIF formula. Ex:

    =SUMIF(B2:B10,"Tests",C2:C10)
    _________________
    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