+ Reply to Thread
Results 1 to 4 of 4

Array summing inventory of a specific part (array formula) EXCEL 2007

  1. #1
    Registered User
    Join Date
    11-06-2018
    Location
    Markham, Ontario, Canada
    MS-Off Ver
    2007
    Posts
    2

    Array summing inventory of a specific part (array formula) EXCEL 2007

    I'm close to solving this array formula but cannot do exactly what I need. Formula shown below:

    =SUM(IF($TY$10:$TY$1001=$TY11,(INDEX($UE$10:$UE$1001,MATCH($TY11:$TY$1001,$TY$10:$TY$1001,0)))))

    All part numbers in range $TY$10:$TY$1001. All inventory quantities in range $UE$10:$UE$1001. All I want to do is add all quantities matching specific part number. In the table below:

    PART NUMBER.....QTYS..........RESULTS EXPECTED (FORMULA)

    TY10=PARTA........UE10=1........UG10=1

    TY11=PARTB........UE11=3........UG11=5

    TY12=PARTB........UE12=2........UG12=5

    TY13=PARTC........UE13=1........UG13=1

    After checking for PARTB match, the array formula finds these in rows 11 and 12 in Excel sheet (or relatively to rows 2 and 3 in Index function) then sums those qtys from column UE (3 + 2 = 5) 5 is the result.

    If TY11 part number's qty in UE11 changes from 3 to 2, then result will automatically sum and get 4 (from 5) for PART B.

    The formula I'm using kind of works except it's summing number of matching part number instead of summing qtys. If I change/delete any qty matching PART B, it still shows sum = 5. However, if I delete part number "PARTB" from any one line, it decrements the total sum by one to 4.

    Please help me.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,000

    Re: Array summing inventory of a specific part (array formula) EXCEL 2007

    !!!

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Array summing inventory of a specific part (array formula) EXCEL 2007

    All I see is

    =SUMIF($TY$10:$TY$1001,$TY10,$UE$10:$UE$1001)

  4. #4
    Registered User
    Join Date
    11-06-2018
    Location
    Markham, Ontario, Canada
    MS-Off Ver
    2007
    Posts
    2

    Re: Array summing inventory of a specific part (array formula) EXCEL 2007

    All I see is

    =SUMIF($TY$10:$TY$1001,$TY10,$UE$10:$UE$1001)
    Thank you Jason! Worked great!

+ 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. Can I make the row lookup array/range part in an array formula variable?
    By OLLY-7 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2014, 09:06 AM
  2. Replies: 2
    Last Post: 05-17-2012, 12:07 PM
  3. Does filling part of an array from a range re-dimension the array?
    By barryleajo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-04-2011, 10:09 AM
  4. Modify this array formula in excel 2007
    By daymaker in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-13-2011, 12:46 AM
  5. search for a part of string within an array of strings from another array list
    By jdonohue in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-12-2011, 01:32 PM
  6. Array Formula Problem - Excel 2007
    By Steve Collins in forum Excel General
    Replies: 1
    Last Post: 06-09-2010, 09:00 AM
  7. using excel array functions on part of array
    By chewwy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2009, 07:19 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