+ Reply to Thread
Results 1 to 8 of 8

Index & Match with more than 2 conditions

  1. #1
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    389

    Post Index & Match with more than 2 conditions

    Hi
    I am using data in excel 2010 where I want to extract data from table on the basis of more than 2 conditions to be fulfilled
    for eq.
    A B C D E F G
    1 Product Codes
    2 Date Branch SB CD KBT DDTY KTY
    3 05-08-2015 KNG 12 20 16 19 15
    4 05-08-2015 MAL 28 36 32 35 31
    5 09-08-2015 BRL 45 53 49 52 48
    6 12-08-2015 GOL 33 41 37 40 36
    7 05-08-2015 BRL 14 22 18 21 17
    8 06-08-2015 KNG 8 16 12 15 11
    9 09-08-2015 MAL 46 54 50 53 49
    If I am using criteria date : 05/08/2015 Branch : MAL Product Code : KBT
    the result must be : 32

    Please give some formula I have used index with formula but it can be used only for 2 conditions which is available on net....

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,165

    Re: Index & Match with more than 2 conditions

    Hi Sanjuss,

    Find attached the answer to this question. It is a CSE formula (or Array) formula that needs to be confirmed with a Control+Shift+Enter keystroke. If you don't want to use this you can build a Helper Column and concatenate your Date and Branch into a single cell and do an Index Match using it. If you want to see other ways to get this answer, keep this thread alive and keep asking.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    389

    Re: Index & Match with more than 2 conditions

    It's Gr8 & work fine

    Thank you very much Marvin......

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index & Match with more than 2 conditions

    Here's another one...

    Data Range
    A
    B
    C
    D
    E
    F
    G
    1
    2
    Date
    Branch
    SB
    CD
    KBT
    DDTY
    KTY
    3
    8/5/2015
    KNG
    12
    20
    16
    19
    15
    4
    8/5/2015
    MAL
    28
    36
    32
    35
    31
    5
    8/9/2015
    BRL
    45
    53
    49
    52
    48
    6
    8/12/2015
    GOL
    33
    41
    37
    40
    36
    7
    8/5/2015
    BRL
    14
    22
    18
    21
    17
    8
    8/6/2015
    KNG
    8
    16
    12
    15
    11
    9
    8/9/2015
    MAL
    46
    54
    50
    53
    49
    10
    ------
    ------
    ------
    ------
    ------
    ------
    ------
    11
    12
    8/5/2015
    MAL
    KBT
    32


    This formula entered in D12:

    =SUMIFS(INDEX(C3:G9,0,MATCH(C12,C2:G2,0)),A3:A9,A12,B3:B9,B12)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,286

    Re: Index & Match with more than 2 conditions

    Two more options.
    Another formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Czeslaw; 08-28-2015 at 11:06 AM.

  6. #6
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    389

    Re: Index & Match with more than 2 conditions

    Thank you
    Tony Valko & Czeslaw ....
    The formulas are really gr8 & excellents.

    Czeslaw
    I have question what is 14; 6 in AGGREGATE function?

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,165

    Re: Index & Match with more than 2 conditions

    Hey sanjuss2,

    Here are the arguments for the Aggregate function. It looks like 14, 6 means Large , Product.

    http://www.exceluser.com/excel_help/...-aggregate.htm

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index & Match with more than 2 conditions

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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: 2
    Last Post: 12-18-2014, 09:52 AM
  2. [SOLVED] Index match with conditions
    By lejanco in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-26-2014, 10:16 AM
  3. [SOLVED] Index and Match on 3 conditions
    By shiftyspina in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-17-2013, 11:56 PM
  4. Add Conditions in Index-Match
    By foncesa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-01-2013, 01:21 AM
  5. Replies: 13
    Last Post: 12-13-2012, 11:44 AM
  6. Index Match with conditions
    By vblackman in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-19-2012, 01:14 PM
  7. INDEX/MATCH/MATCH (2 Conditions for Column #)
    By ron2k_1 in forum Excel General
    Replies: 4
    Last Post: 02-23-2011, 03:11 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