+ Reply to Thread
Results 1 to 4 of 4

Additional Rule in Array Formula

Hybrid View

  1. #1
    Registered User
    Join Date
    01-08-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    10

    Additional Rule in Array Formula

    Good Afternoon,

    I was helped this morning by some amazing forum members but I now have another variable I would like to add to the array I was helped with. The attached has the formula so far (column S - 'Active Customers') but I would like to expand that formula to also include a unique count of customers, but keeping the existing rules in that formula that are working a treat.

    Thank you very much in advance, again.
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Additional Rule in Array Formula

    I wonder if you can tell us what the formula in column S is supposed to be doing? I think it can be simplified significantly.

    Try this array formula** for the count of unique customers. Array entered in T2 and copied down:

    =SUM(IF(FREQUENCY(IF(D$2:D$20=D2,IF(O$2:O$20=O2,MATCH(F$2:F$20,F$2:F$20,0))),ROW(F$2:F$20)-ROW(F$2)+1),1))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    I'm assuming no empty cells in column F.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    01-08-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Additional Rule in Array Formula

    Perfection! Thank you soooooo much, Tony.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Additional Rule in Array Formula

    You're welcome. Thanks for the feedback!

+ 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. Using an array and adding additional calculations
    By Eamonn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2011, 09:07 AM
  2. Array formula with an additional criteria
    By harleypop in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2009, 01:28 AM
  3. How to add additional elements to an array?
    By gnome_core in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-23-2009, 10:42 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