+ Reply to Thread
Results 1 to 6 of 6

Index + match

  1. #1
    Registered User
    Join Date
    04-26-2013
    Location
    Argentina
    MS-Off Ver
    Excel 2010
    Posts
    37

    Index + match

    Hi All,

    I stuck with some stuff regarding the INDEX + MATCH. If you can see below, i have the following table as example with some employee Names and source of the sale. What i want to get is a list with the Employee Names, where sales were by credit card.

    Employee Nm (A1) Source (B1)
    AAAAA Debit Card
    AAAAA Credit Card
    ZZZZZ Debit Card
    CCCCC Credit Card
    BBBBB Debit Card
    CCCCC Credit Card
    AAAAA Credit Card


    Right now, using the following formula.. (Paste on C2)

    =SI.ERROR(INDICE($A$1:$A$5; COINCIDIR(0; INDICE(CONTAR.SI($C$1:C1; $A$1:$A$31); 0; 0); 0)); "") [spanish]
    =IF.ERROR(INDEX($A$1:$A$5; MATCH(0; INDEX(COUNTIF($C$1:C1; $A$1:$A$31); 0; 0); 0)); "") [english]

    I get the following... a list of unique employeeNm.

    AAAAA
    ZZZZZ
    CCCCC
    BBBBB

    So, There is a way to get a list of employees but only where there sale is "Credit Card"
    [highlighted in green]


    Hope you have the correct answer. Thank you so much!

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Index + match

    Try this array formula in D2 and copy down


    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ***Array formula must be entered by using key combination of CTRL+SHIFT+ENTER and not just ENTER

    Data Range
    A
    B
    C
    D
    1
    Employee Nm (A1)
    Source (B1)
    2
    AAAAA
    Debit Card
    AAAAA
    3
    AAAAA
    Credit Card
    CCCCC
    4
    ZZZZZ
    Debit Card
    5
    CCCCC
    Credit Card
    6
    BBBBB
    Debit Card
    7
    CCCCC
    Credit Card
    8
    AAAAA
    Credit Card
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    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
    53,050

    Re: Index + match

    Another approach using a helper column and ARRAY formula (I like AlKey's suggestion better, but I worked on this so I am posting lol)...
    A
    B
    C
    D
    1
    Employee Nm (A1) Source (B1)
    2
    AAAAA Debit Card Debit Card1 AAAAA
    3
    AAAAA Credit Card Credit Card1 CCCCC
    4
    ZZZZZ Debit Card Debit Card1
    5
    CCCCC Credit Card Credit Card1
    6
    BBBBB Debit Card Debit Card1
    7
    CCCCC Credit Card Credit Card2
    8
    AAAAA Credit Card Credit Card2


    C2=B2&COUNTIFS($A$2:A2,A2,$B$2:B2,B2)
    You can hide or move this if you want)
    D2=IFERROR(INDEX($A:$A,SMALL(IF($C$2:$C$8="Credit Card1",ROW($A$2:$A$8)),ROWS($A$1:A1))),"")
    ARRAY formula, copied down
    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

  4. #4
    Registered User
    Join Date
    04-26-2013
    Location
    Argentina
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Index + match

    Alkey Works great! Thank you so much for your help and time.

  5. #5
    Registered User
    Join Date
    04-26-2013
    Location
    Argentina
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Index + match

    Hey FDibbins, thank you so much for the another approach. Really thanks for your time and help.

  6. #6
    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
    53,050

    Re: Index + match

    Happy to help, thanks for the feedback

+ 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] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  2. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  3. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  4. [SOLVED] Index Match from a cell populated from index match
    By MarcLewis in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-15-2013, 05:30 AM
  5. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  6. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  7. Replies: 5
    Last Post: 02-29-2012, 08:51 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