+ Reply to Thread
Results 1 to 3 of 3

Tally of 2 data columns.

  1. #1
    Registered User
    Join Date
    09-28-2011
    Location
    New York
    MS-Off Ver
    Excel 2002-2010
    Posts
    1

    Tally of 2 data columns.

    I have a table with col C company and col D Dept. I'm looking for a way on another sheet to tally (return a count) on the number of a specific company and department.

    Example...
    Col C Col D
    Comp1 DeptA
    Comp2 DeptB
    Comp1 DeptA
    Comp1 DeptB

    Return for Comp1
    DeptA = 2
    DeptB = 1

    Return for Comp2
    DeptB = 1

    Hope that's clear on what I'm looking to accomplish. Haven't been able to figure out a formula or nested formulas that will return a Count based on data from two columns of data without creating a new dataset/sheet.

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Tally of 2 data columns.

    You should use a pivot table my friend:

    *Highlight the table of data (the C:D columns mentioned),
    *Click on the Insert Tab and select Pivot Table (allow it to insert the table into a new tab).

    *Drag the company column to the row labels area (see attachment, is done)
    *Drag the Department column to the row labels area AND the (sigma) Values area.

    viola...department count by company name ...see attached sheet
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor khamilton's Avatar
    Join Date
    10-08-2009
    Location
    IL
    MS-Off Ver
    Excel 2007
    Posts
    345

    Re: Tally of 2 data columns.

    Or if for some reason you didn't want to do the pivot table you could use Sumproduct.

    =SUMPRODUCT(--($C$1:$C$4="Comp1")*($D$1:$D$4="DeptA"))
    Please acknowledge the response you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

+ 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