+ Reply to Thread
Results 1 to 6 of 6

Column addition

  1. #1
    Registered User
    Join Date
    05-23-2014
    Posts
    16

    Column addition

    I have an excel sheet with about 44000 entries of yearly company sales data. I am trying to get total of sales of a particular company, for a specific year. For example, my data looks like table A and i want to make it look like table B. What formulas

    Table A

    Year Sales Company number
    2001 2345 7896
    2001 1234 7896
    2001 2144 7896
    2001 2338 9440
    2001 4340 9440
    2001 2316 9440
    2002 2330 7896
    2002 4679 7896
    2002 4873 7896
    2002 2495 9440


    Table B

    Year Sales Company number
    2001 5723 7896
    2001 8994 9440
    2002 11882 7896
    2002 2495 9440
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Column addition

    I suspect that thismay be more complicated than your example suggests..

    Will there ALWAYS be n companies per year, or sometimes can there be fewer... or more ??
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    05-23-2014
    Posts
    16

    Re: Column addition

    Sometimes they are fewer or more, there are not always the same number of observations

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Column addition

    You can do this pretty easily with a Pivot Table.

    Try this:

    Highlight your data (A1:C11 in your example) > Insert > PivotTable > Drag "Year" and "Company Number" into Rows (with "Year" on top) > Drag "Sales" into Values

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Column addition

    I don't normally like Pivot Tables, but in this case... they're a lot easier than ANY formula-based solution.

  6. #6
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Pendleton, OR
    MS-Off Ver
    Excel 2013
    Posts
    129

    Re: Column addition

    I would normally use SUMIFS() for this type of work, but if you like the Pivot Table go with that. I have added to your sheet the SUMIFS formulation.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Cell Addition In Column
    By jb912 in forum Excel General
    Replies: 3
    Last Post: 02-23-2017, 01:32 PM
  2. Ever-Expanding Column Addition
    By STBTC in forum Excel General
    Replies: 11
    Last Post: 01-30-2016, 01:01 PM
  3. Dynamic pivot table column addition
    By jmusbach in forum Excel General
    Replies: 0
    Last Post: 06-11-2012, 09:56 PM
  4. Column Addition (Solved)
    By oneblueaugust in forum Excel General
    Replies: 6
    Last Post: 01-06-2009, 08:54 PM
  5. [SOLVED] Excel addition of column
    By LSP Marg in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-11-2006, 07:30 AM
  6. [SOLVED] column addition question
    By D in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-19-2006, 07:55 PM
  7. [SOLVED] Get Addition of each Column in a sheet
    By Ahmad Jalil Qarshi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2005, 02:05 AM

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