+ Reply to Thread
Results 1 to 3 of 3

countif value in ranges

Hybrid View

kmlloyd countif value in ranges 08-10-2010, 04:44 PM
NBVC Re: countif value in ranges 08-10-2010, 04:51 PM
kmlloyd Re: countif value in ranges 08-10-2010, 04:59 PM
  1. #1
    Forum Contributor
    Join Date
    11-18-2009
    Location
    Winnipeg
    MS-Off Ver
    Excel 2003
    Posts
    203

    countif value in ranges

    I have attached a sample. I need something that will return the # of employees that have Months of Service within a given range (col A) and a Termination Reason that matches the reasons in Row 1.

    TIA!
    Attached Files Attached Files
    Last edited by kmlloyd; 08-10-2010 at 04:59 PM.

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

    Re: countif value in ranges

    Convert column A into the upper bound number of months, e.g. 3, 6, 12, 36, 60, 120, 240 and make the 20+years something big, like 1000...

    then in B2:
    =SUMPRODUCT(--('YTD Terms'!$C$2:$C$40<=$A2),--('YTD Terms'!$B$2:$B$40=B$1))-SUM(B$1:B1)

    copied across the matrix

    adjust ranges to suit.
    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.

  3. #3
    Forum Contributor
    Join Date
    11-18-2009
    Location
    Winnipeg
    MS-Off Ver
    Excel 2003
    Posts
    203

    Re: countif value in ranges

    thank you so much!

+ 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