+ Reply to Thread
Results 1 to 2 of 2

formula to find unique instances in powerpivot

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-30-2015
    Location
    LA my baby
    MS-Off Ver
    2013
    Posts
    727

    formula to find unique instances in powerpivot

    Hello. Someone gave me this formula to find unique instances in two columns (so unique combinations). How does it work? Thanks.

    =IF(SUMPRODUCT(($A$2:$A2=A2)*($B$2:$B2=B2))>1,0,1)

  2. #2
    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: formula to find unique instances in powerpivot

    Hi,

    I'm not entirely sure it is giving you unique occurencies. But that depends on what you mean by unique and in what range. For instance with the following pairs of numbers

    1,2
    1,3
    1,4

    in A2:B4 the formula returns a value of 1 for each row. Whilst that's true for the first range A$2:A2 & B$2:B2 of course that single pair is unique but on the second row there are self evidently two unique pairs. Assuming the formula is in C2 maybe it should be
    Formula: copy to clipboard
    =IF(SUMPRODUCT(($A$2:$A2=A2)*($B$2:$B2=B2))>1,0,1)+C1
    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Formula to count unique instances
    By NS4Excel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-27-2015, 05:20 PM
  2. New Measure Powerpivot Unique Count
    By PatSc in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 11-26-2014, 01:36 PM
  3. Formula to Find Cell Address of Multiple Instances of Value
    By kimbekaw in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-09-2014, 05:11 PM
  4. Replies: 8
    Last Post: 09-14-2013, 12:53 PM
  5. Replies: 6
    Last Post: 02-06-2013, 07:45 PM
  6. Replies: 1
    Last Post: 04-08-2009, 05:24 AM
  7. Find all instances in formula string
    By Ed in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-22-2005, 02:06 PM

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