+ Reply to Thread
Results 1 to 4 of 4

Array Problem

Hybrid View

  1. #1
    Registered User
    Join Date
    03-05-2007
    Location
    Colorado Springs, CO
    MS-Off Ver
    2010
    Posts
    45

    Unhappy Array Problem

    I am trying to use an array to count the number of instances for a sales person and the area they sold in.

    The formula looks like this:
    {=SUM((Salesperson=SpecificSalesperson)*(Area=SpecificArea)*(1))}

    Salesperson is the range of Cells where all names of sales people are.
    Area is the range of cells where all areas for same records are.

    This works in my test bed where there are only 10 entries. My actual data has about 14000 entries. When I try to use this I get a #NUM back. Why is this working in my test bed but not in my actual data sheet?

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    I beleive it is because there is a limit as to how many rows you can run an array formula on.

    I have not used array formulas for years. When I did use them I remember running into similar problems once the number of rows got up around 1,000.

    Have a look at
    http://www.ozgrid.com/Excel/arrays.htm
    http://www.ozgrid.com/excel-add-ins/array-formulas.htm
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699
    Quote Originally Posted by olsoniv
    I am trying to use an array to count the number of instances for a sales person and the area they sold in.

    The formula looks like this:
    {=SUM((Salesperson=SpecificSalesperson)*(Area=SpecificArea)*(1))}

    Salesperson is the range of Cells where all names of sales people are.
    Area is the range of cells where all areas for same records are.

    This works in my test bed where there are only 10 entries. My actual data has about 14000 entries. When I try to use this I get a #NUM back. Why is this working in my test bed but not in my actual data sheet?
    I don't believe there's any limit, are you sure you don't have a #NUM! error somewhere in your data?

    btw you don't need the *(1) part, this is sufficient

    {=SUM((Salesperson=SpecificSalesperson)*(Area=SpecificArea))}

    Perhaps you can try SUMPRODUCT, which doesn't need to be "array entered" but if you do have errors in the data you'll get the same result......

    =SUMPRODUCT(--(Salesperson=SpecificSalesperson),--(Area=SpecificArea))

  4. #4
    Registered User
    Join Date
    03-05-2007
    Location
    Colorado Springs, CO
    MS-Off Ver
    2010
    Posts
    45

    Thanks!

    Thanks for the inputs....I will try sumproduct and see if I can't get that to work. I don't have any #num's in my data as it is the raw data.

+ 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