+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Need help with Counts

  1. #1
    Registered User
    Join Date
    08-29-2011
    Location
    Austin, TX
    MS-Off Ver
    Excel 2007
    Posts
    1

    Need help with Counts

    Hello,
    I have the following scenario:

    * A sheet with several columns and rows. (2 of these columns will be important for the data I need to pull into a separate sheet with some formulas)
    * Column 1 - Contains numbers (eg. 1.03, 2.54, 4.9, etc.) (Labeled by "TAT"))
    * Column 2 - Contains text (eg. Desktop, Server, Other, etc.)

    Data I Need in a separate sheet:
    * Columns will be "Desktop", "Server", "Other"
    * Rows will be 6+, 3-5, 2-3, 1-2, 0-1

    *** I need the counts of each column for each of the different rows. For example, I need the count of "Desktop", where the TAT is 6 or more, between 3 and 5, between 2 and 3, etc.)

    Can someone help?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Need help with Counts

    You can use COUNTIFS

    e.g.

    =COUNTIFS('Sheet1'!$B:$B,B$1,'Sheet1!$A:$A$,">5")

    =COUNTIFS('Sheet1'!$B:$B,B$1,'Sheet1!$A:$A$,">3",'Sheet1!$A:$A$,"<=5")

    =COUNTIFS('Sheet1'!$B:$B,B$1,'Sheet1!$A:$A$,">2",'Sheet1!$A:$A$,"<=3")

    =COUNTIFS('Sheet1'!$B:$B,B$1,'Sheet1!$A:$A$,">0",'Sheet1!$A:$A$,"<=2")

    Where B$1 contains first column header, "Desktop" on current sheet.

    adjust ranges to suit

    Copy each across.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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