+ Reply to Thread
Results 1 to 2 of 2

GroupBy and distinct in excel

  1. #1
    Registered User
    Join Date
    06-07-2011
    Location
    PA, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    GroupBy and distinct in excel

    Hi,

    I'm trying to get the distinct transactions from the columns below. I would need the distinct transactions count when sum of the transaction is 0 and contains item key 106369 and same when sum is greater than 0.

    trans seq key itemnum sum
    1213 1 29319280 106369 0
    1214 1 1899446 106369 0
    1220 1 125635869 106369 0
    1221 1 125635875 106369 0
    1221 2 125635875 202 2.25
    1224 1 79531558 106369 0
    1225 1 79531571 106369 0
    1225 2 79531571 82164 3.99
    1225 3 79531571 22334 0

    in above eg. i require count of trans with item 106369 and sum = 0 as 4 and count of trans with item 10639 as 2
    Last edited by kumarsubram; 06-07-2011 at 04:14 PM.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: GroupBy and distinct in excel

    you can use the DCOUNTA function to do this. see attached file as example.
    Pierre
    Attached Files Attached Files

+ 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