+ Reply to Thread
Results 1 to 10 of 10

Sumproduct/COUNTIFs or With Index & Match in matrix table from different sheet

  1. #1
    Registered User
    Join Date
    01-08-2020
    Location
    INDONESIA
    MS-Off Ver
    2016
    Posts
    36

    Sumproduct/COUNTIFs or With Index & Match in matrix table from different sheet

    Hello, I need a Help

    I have a Selling out data with Sales Name, Item Name, Shop name
    I want to count how many shop under specific sales name who buy specific item name in specific month.
    please see Attachment.

    thx for your help
    Attached Files Attached Files
    Last edited by ZANDRY10085; 03-23-2020 at 10:00 PM.

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Need a Help with COUNTIF/s or With Index & Match in matrix table from different sheet

    try this in G6 and drag down

    Please Login or Register  to view this content.
    Minor Edit to formula from my original post
    Last edited by Crooza; 03-23-2020 at 01:46 AM.
    Happy with my advice? Click on the * reputation button below

  3. #3
    Registered User
    Join Date
    01-08-2020
    Location
    INDONESIA
    MS-Off Ver
    2016
    Posts
    36

    Re: Need a Help with COUNTIF/s or With Index & Match in matrix table from different sheet

    i want to count the number of shop who buy that item (same name shop count as 1) not the total item, but thx for your reply

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Need a Help with COUNTIF/s or With Index & Match in matrix table from different sheet

    If you want the count then use this as an array formula

    Enter + control + Shift then drag down

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-08-2020
    Location
    INDONESIA
    MS-Off Ver
    2016
    Posts
    36

    Re: Need a Help with COUNTIF/s or With Index & Match in matrix table from different sheet

    sry if my word confuse you, your formula give different result with what i want.

    what i want is

    name item shop qty
    vian cylinder aa 5
    vian cylinder ab 0
    vian cylinder ac 7

    the result will 2

    vian cylinder aa 5
    vian cylinder aa 4
    vian cylinder ab 5
    vian cylinder ac 2

    the result will 3

  6. #6
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,983

    Re: Sumproduct/COUNTIFs or With Index & Match in matrix table from different sheet

    Sheet2


    C2=SUM(IF(FREQUENCY(IF(Sheet1!B2:B100=Sheet2!B2,IF(Sheet1!A2:A100=Sheet2!A2,IF(INDEX(Sheet1!D2:O100,0, MATCH(Sheet2!C1,Sheet1!D1:O1,0))<>0,MATCH(Sheet1!C2:C100,Sheet1!C2:C100,0)))),ROW(Sheet1!C2:C100)-ROW(Sheet1!C2)+1),1))


    Control+shift+enter

  7. #7
    Registered User
    Join Date
    01-08-2020
    Location
    INDONESIA
    MS-Off Ver
    2016
    Posts
    36

    Re: Sumproduct/COUNTIFs or With Index & Match in matrix table from different sheet

    Thx for your reply, but your formula result in my worksheet = #N/A or #VALUE!

    EDITED
    Vian + Battery + all month your formula give result = 1
    Other combination your formula give result = #Value!

    idk, but looks like something not right in this part "MATCH(Sheet1!C2:C100,Sheet1!C2:C100,0)"
    Last edited by ZANDRY10085; 03-23-2020 at 09:39 PM.

  8. #8
    Registered User
    Join Date
    01-08-2020
    Location
    INDONESIA
    MS-Off Ver
    2016
    Posts
    36

    Re: Sumproduct/COUNTIFs or With Index & Match in matrix table from different sheet

    i got this formula, but this formula only count how many unique shop who buy some item. dont know how to combine it with sales name, item name and specific month.

    D= qty, C= Shop name

    =SUMPRODUCT(($D$2:$D$20<>0)/COUNTIFS($C$2:$C$20;$C$2:$C$20&""))

  9. #9
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,603

    Re: Sumproduct/COUNTIFs or With Index & Match in matrix table from different sheet

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

  10. #10
    Registered User
    Join Date
    01-08-2020
    Location
    INDONESIA
    MS-Off Ver
    2016
    Posts
    36

    Re: Sumproduct/COUNTIFs or With Index & Match in matrix table from different sheet

    sry, i make a mistake.

    your formula @CARACALLA work fine

    SUM(IF(FREQUENCY(IF(Sheet1!B2:B100=Sheet2!B2,IF(Sheet1!A2:A100=Sheet2!A2,IF(INDEX(Sheet1!D2:O100,0, MATCH(Sheet2!C1,Sheet1!D1:O1,0))<>0,MATCH(Sheet1!C2:C100,Sheet1!C2:C100,0)))),ROW(Sheet1!C2:C100)-ROW(Sheet1!C2)+1),1))

    thx for your help

+ 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. [SOLVED] Need a Help with COUNTIF/COUNTIFS with matrix table from different sheet
    By ZANDRY10085 in forum Excel General
    Replies: 3
    Last Post: 02-12-2020, 01:09 AM
  2. [SOLVED] Index,Match,CountIF Formula NOT working for removing duplicate rows frm Table- plz, Check?
    By sumans054 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2019, 11:28 PM
  3. Replies: 8
    Last Post: 10-14-2014, 01:54 AM
  4. Replies: 11
    Last Post: 03-26-2014, 12:48 AM
  5. Replies: 2
    Last Post: 02-12-2014, 01:12 PM
  6. [SOLVED] INDEX MATCH a table of X's pulled from another sheet.
    By purdue7997 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-30-2013, 10:29 PM
  7. Help Match Index Formula for a table matrix
    By prkhan56 in forum Excel General
    Replies: 2
    Last Post: 09-29-2011, 04:40 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