+ Reply to Thread
Results 1 to 3 of 3

Count of matched row, column, and cell contents, then reference another table and sum

  1. #1
    Registered User
    Join Date
    08-23-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Count of matched row, column, and cell contents, then reference another table and sum

    Hey all, I've run into (as far as I've encountered) about the most tricky bit of formula roadblocks I've had in a while.... I have essentially two spreadsheets of data, and one block of output information as shown below. The bottom spreadsheet shows part numbers, then which A-Zone and and T-Zone they go through, and how long it takes to go through each zone. The middle sheet shows the part numbers, and which zone they are in on any given day. The top one is what I want to have as an output.

    I would like to write a formula that that will count up the number of units whose current days status is that of "A" but only for those that are listed as being in "A-Zone 1". So it looks at the part number, checks under todays column, see's if it's in 'A', then only counts it if it's an "A-Zone 1" part.

    Secondly, instead of a count, I would want a sum. So check the part number, check the current days status, then sum up the "A-Times" only for those parts who are in "A-Zone 1".

    Im trying to even just conceptually think how to go about this. I've considered using boolean sumproducts and countifs/sumifs, but I'm totally stuck on how to even start to make it happen.

    This might not be exactly clear, so I'm happy to try to explain further if. Any help, even just forward progress would be rediculously appreciated!

    A-Zone 1 Units A-Zone 1 Time

    PN 9/19 9/20 9/21 9/22 9/23
    123456 O O A A T
    234567 A A T T S
    345678 A A A T S
    456789 A T S

    A-Zone T-Zone A-Time T-Time
    123456 1 1 10 15
    234567 2 2 20 25
    345678 3 3 30 35
    456789 4 4 40 45

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Count of matched row, column, and cell contents, then reference another table and sum

    Im having a hard time trying to visualize what you have Perhaps you could upload a sample workbook with some dummy data, and a few samples of your expected outcome?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-23-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Count of matched row, column, and cell contents, then reference another table and sum

    TestBook.xlsx

    Here's a sample, with the desired outputs below the data tables.

    Let me know if anythings unclear here.

+ 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. Replies: 4
    Last Post: 05-03-2013, 12:09 PM
  2. Replies: 2
    Last Post: 06-29-2012, 07:02 AM
  3. Replies: 1
    Last Post: 04-24-2012, 04:14 AM
  4. Continue looking in a table if 1st matched cell is blank
    By patchulee in forum Excel General
    Replies: 5
    Last Post: 07-06-2011, 10:01 AM
  5. use cell reference,whose contents= a table array name for Vlookup
    By Sonic in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-27-2006, 03:35 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