+ Reply to Thread
Results 1 to 8 of 8

Function to match and then count

  1. #1
    Registered User
    Join Date
    06-16-2011
    Location
    Cary, NC
    MS-Off Ver
    Excel 2010
    Posts
    8

    Angry Function to match and then count

    Let me explain.
    I have two worksheets in my excell workbook.
    One sheet we will call ApplicationName
    second sheet we will ImportTable.

    In Sheet 1 (ApplicationName) I have:
    <column1> . <column 2> (using Countif function)
    MSWORD . Total# of servers from ImportTable where MS Word is there
    MS Excell . Total# of servers from ImportTable where MS Excell is there
    MS PPS . Total# of servers from ImportTable where MS PPS is there


    In sheet 2 - (ImportTable) I have
    <column1> . <column2> . <column3>
    ServerA . MSWORD . Level0
    ServerB . MSWORD . Level0
    ServerC . MS Excell . Level1
    ServerD . MSPPS . Level0
    ServerE . MSPPS . Level1
    ServerF . MSWORD . Level2
    ServerG . MSExcell . Level2
    ServerH . MSWORD . Level1
    ServerI . MS PPS . Level2.
    .
    Now what I want to do is the following:
    In Sheet1 - Application - I want to add a column that will match the Application name and then count the number of Level0's assigned and another column where the same criteria counting Level1 etc..
    So that I can see a breakdown of how many level0, level1, and level2's are there for each application.
    I am using 2010
    Thoughts??
    Last edited by Jointheir7; 06-16-2011 at 01:29 PM. Reason: solved

  2. #2
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: HELP... need Function help to match and then count.

    Hi

    Does the attached Pivot Table provide what you want?
    Attached Files Attached Files
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: HELP... need Function help to match and then count.

    In 2010, that sounds like a case for COUNTIFS

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    06-16-2011
    Location
    Cary, NC
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: HELP... need Function help to match and then count.

    yes it does .. however how was it done??

  5. #5
    Registered User
    Join Date
    06-16-2011
    Location
    Cary, NC
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: HELP... need Function help to match and then count.

    @ TMShucks - Thank you and thought of that but have not been able to get it.. Any suggestions??
    @ Roger - yes it does .. however how was it done?? Not too familiar with pivot tables.

  6. #6
    Registered User
    Join Date
    06-16-2011
    Location
    Cary, NC
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: HELP... need Function help to match and then count.

    @ Roger - Figured it out.. Thank you for pointing in the right direction! EXCELLENT!!

  7. #7
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: HELP... need Function help to match and then count.

    Quote Originally Posted by Jointheir7 View Post
    yes it does .. however how was it done??
    Hi
    On the data page place your cursor within your data, having ensured you have a header row as I did.
    Insert tab>Table>my table has headers
    On the Design tab that appears, Summarise with Pivot Table>OK

    On the new sheet that appears, from the Field list
    drag Product to the Row labels area
    drag Server to the Row Labels area
    drag Level to the Column label area
    and finally drag Product once again to the Data area

    For more information on Pivot Table take a look at Debra Dalgleish's site - she has lots of tutorials
    http://www.contextures.com/CreatePivotTable.html

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Function to match and then count

    Using the Data sheet that Roger provided:

    HTML Code: 

    Drag the formula across and down.

    Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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