Results 1 to 4 of 4

Need array to sum based on multiple criteria

Threaded View

  1. #1
    Registered User
    Join Date
    08-19-2016
    Location
    Pennsylvania, USA
    MS-Off Ver
    2010
    Posts
    6

    Need array to sum based on multiple criteria

    Hello,

    [SEE REPLY POST BELOW FOR UPDATED FILE]

    Basically I need an array that will sum up one column based on criteria from others.

    Below is a snip of a super simplified version of what I've got:

    Capture.PNG

    Now if it loaded correctly there should be 4 columns. I need an array that will sum up the total items in store for the first instance of a store, But I want it summed by state. So without a formula, I want to sum total Items in store for NY. I only want the first instance of each store in NY which would be the sum of 220 and 75. This is where I want to end. Keep in mind this is overly simplified and my actual table is tens of thousands of rows.

    I think I'm close with this formula but can't get it to work correctly.
    {=IF(COUNTIFS(C:C,"NY",INDEX(A:A,MATCH(A:A,A:A,0)):A:A,A:A)=1,SUM(INDEX(D:D,MATCH(A:A,A:A,0)):A:A,A:A),"0")}


    Any help would be greatly appreciated.
    Attached Images Attached Images
    Last edited by Joshua H; 08-19-2016 at 02:15 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sum array (or something) based on multiple criteria
    By VBA-NOOB in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-25-2015, 05:02 PM
  2. Array that pulls list of data based on sum of multiple criteria
    By moses125 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2015, 06:14 PM
  3. Array formula to return multiple values based on various (OR) criteria
    By dancing-shadow in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-20-2013, 05:12 AM
  4. Multiply based on multiple array criteria
    By jcullen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2012, 06:14 PM
  5. Return array based on multiple criteria
    By kmacd in forum Excel General
    Replies: 3
    Last Post: 01-05-2011, 09:05 PM
  6. Replies: 4
    Last Post: 04-16-2010, 10:09 AM
  7. Using array to sum by multiple criteria including one based on prefix
    By monkdelafunk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-29-2008, 02:24 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