+ Reply to Thread
Results 1 to 3 of 3

Sum unique text/number values given a criteria

  1. #1
    Registered User
    Join Date
    05-26-2013
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    79

    Question Sum unique text/number values given a criteria

    Hi All,

    I have a problem similar to that of an earlier post today however that particular instance didn't help solve my problem.

    I have a large array of data, and although countless attempts of using a combination of SUM, IF, FREQUENCY, COUNT etc I cannot get the desired outcome.

    See attached the example worksheet!

    In column C I wish to equate the total number of unique parts for that given provider. I know I could create a separate table and probably use a combination of count ifs but I have two main issues. Firstly the part ID's are not all numbers, some may be text only or a text-number combination or just a number and secondly I am using this column as a helper column for another function and thus need the answer calculated for each row of data even if the provider is the same, thus I'm thinking I will need an array formula with some cell locks applied. Further to this my database thus far is approximately 10,000 rows and growing and unfortunately may occasionally include Blank entries.

    Is anybody able to give me some guidance on this? I have included a small example and manually entered the results I expect to see in Column C.

    Count of unique entries.xlsx

    Cheers,

    Spicey

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Sum unique text/number values given a criteria

    Hi,

    See the attached file. I have added a helper column to identify the unique values and used sumif to get the totals.

    In D2: =IF(COUNTIFS(A$2:A2,A2,B$2:B2,B2)>1,0,1)

    In C2: =SUMIF(A$2:A$27,A2,D$2:D$27)
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-26-2013
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    79

    Re: Sum unique text/number values given a criteria

    Clever,

    That's exactly what I needed.

    Cheers

+ 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. Unique Number of Values Multiple Criteria
    By pookyman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-28-2014, 09:12 PM
  2. [SOLVED] Counting Number of Unique Values in a List based on Criteria
    By greencroft in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-03-2014, 04:00 AM
  3. [SOLVED] Counting unique text values based on criteria
    By macrorookie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-02-2014, 09:34 AM
  4. Formula that counts number of unique text values if it meets criteria
    By ruledwritingpaper in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-15-2014, 02:57 PM
  5. Count unique text values using criteria
    By roadbiker in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-27-2013, 12:13 PM
  6. Replies: 5
    Last Post: 05-31-2012, 08:48 AM
  7. Count unique text values in range with criteria
    By cdiaz in forum Excel General
    Replies: 3
    Last Post: 07-15-2011, 10:43 AM

Tags for this Thread

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