+ Reply to Thread
Results 1 to 6 of 6

SUBTOTAL in an Array forumla - Counting unique & repeat values disregarding blanks

  1. #1
    Registered User
    Join Date
    06-16-2013
    Location
    Yorkshire
    MS-Off Ver
    Excel 2013
    Posts
    33

    SUBTOTAL in an Array forumla - Counting unique & repeat values disregarding blanks

    I have the following array formula that provides a summary of the number of unique customers and repeat customers.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This works fine, but if there is a blank row it returns an error.

    I've tried replacing SUM with SUBTOTAL instead (I think this handles blanks better, right?) but this doesn't work AT ALL even if there are no blanks.

    What I would like is for it to give the number of unique text values, and the number of repeated text values (not the number of times they're repeated) while ignoring (not counting) blanks.
    Last edited by -AJ-; 06-26-2014 at 08:43 AM.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: SUBTOTAL in an Array forumla - Counting unique & repeat values disregarding blanks

    Hi,

    Any chance of an actual workbook? Formulas with structured references are not so easy to mock up.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    06-16-2013
    Location
    Yorkshire
    MS-Off Ver
    Excel 2013
    Posts
    33

    Re: SUBTOTAL in an Array forumla - Counting unique & repeat values disregarding blanks

    See attached. Formula is in the Total cell at the bottom of the Customer column.
    It's not being charted or referenced at all which is why I combined text with formulas.
    Attached Files Attached Files

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: SUBTOTAL in an Array forumla - Counting unique & repeat values disregarding blanks

    Thanks.

    ="Qty of Unique Customers: "&SUM(IF(FREQUENCY(IF([Customer]<>"",MATCH([Customer],[Customer],0)),ROW([Customer])-MIN(ROW([Customer]))+1)>0,1))&" | Qty of Repeat Customers: "&SUM(IF(FREQUENCY(IF([Customer]<>"",MATCH([Customer],[Customer],0)),ROW([Customer])-MIN(ROW([Customer]))+1)>1,1))

    The repeated use of the MATCH clause is not necessary and causes undue extra calculation. I am not sure why it is still recommended by some sources.

    Regards

  5. #5
    Registered User
    Join Date
    06-16-2013
    Location
    Yorkshire
    MS-Off Ver
    Excel 2013
    Posts
    33

    Re: SUBTOTAL in an Array forumla - Counting unique & repeat values disregarding blanks

    Works perfectly. Thanks fellow Yorkshireman/Yorkshirewomen (small world)

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: SUBTOTAL in an Array forumla - Counting unique & repeat values disregarding blanks

    Quote Originally Posted by -AJ- View Post
    Works perfectly. Thanks fellow Yorkshireman/Yorkshirewomen (small world)
    You're welcome!

    Yorkshire IS the world!

+ 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. [SOLVED] Counting blanks between first and last most variable in array
    By draconius in forum Excel General
    Replies: 2
    Last Post: 06-17-2014, 11:08 AM
  2. Counting Cells while Disregarding Text
    By Largos in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-14-2013, 11:44 AM
  3. Need forumla to sum number of unique values in groups of different sizes
    By ea2146 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-30-2013, 02:33 PM
  4. Create an array based off values in another array - exclude blanks
    By clifton1230 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-05-2013, 05:35 PM
  5. Replies: 1
    Last Post: 02-18-2013, 01:46 AM

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