+ Reply to Thread
Results 1 to 4 of 4

[SOLVED] Sort data using two criteria?

  1. #1
    Registered User
    Join Date
    02-17-2010
    Location
    Florida, USA
    MS-Off Ver
    Excel 2000
    Posts
    2

    [SOLVED] Sort data using two criteria?

    Hello,
    I'm pulling my hair on something that seems so simple.

    Here is the problem:
    I have multiple employees working on different projects. I would like to use a formula or some kind of macro where I can automatically scan an entire worksheet and manipulate the data to show me how much time was spent by each employee on each project. Using the SUMIF command only lets me use one criteria. In my case I need to sum if in the row there is a match with the employee name and the project name.

    For example, if Employee A is working on Project 1 then sum the units.

    I would like everything summarized in a nice table.

    Attached is a basic example of my sheet.

    Any help is appreciated!!

    Thanks!

    by the way, I am using a Excel 2000.
    Attached Files Attached Files
    Last edited by jruiz81; 02-17-2010 at 03:45 PM.

  2. #2
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: How can I sort data using two criteria?

    Hi

    I have attached an example using SUMPRODUCT for you to look at.

    Regards

    Jeff
    Attached Files Attached Files

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How can I sort data using two criteria?

    Hi, See the attached.

    The C3 cell on Sheet1 will give you the filtered total whenever you filter the data.

    The table on Sheet2 is a summary table.

    With your production data I suggest you create dynamic range names for the various 8:51 column ranges so that you don't have to worry about changing the formulae. The Sheet2 formulae are array formulae and very intensive on calc time so you need to keep the ranges covered to a minimum.

    Rgds
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    02-17-2010
    Location
    Florida, USA
    MS-Off Ver
    Excel 2000
    Posts
    2

    Thumbs up Re: How can I sort data using two criteria?

    This is perfect! So simple!

    Thanks a bunch!!

+ 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