+ Reply to Thread
Results 1 to 5 of 5

How to get records based on a condition using Index Match?

  1. #1
    Forum Contributor
    Join Date
    11-01-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    280

    How to get records based on a condition using Index Match?

    I have this table:

    Please Login or Register  to view this content.
    I am aiming to get all areas and items that are monthly, here is what I have tried:

    Please Login or Register  to view this content.
    But this returns me this result:

    Please Login or Register  to view this content.
    How can I return each area that is a monthly frequency and on the next column, display it's item also.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: How to get records based on a condition using Index Match?

    You can use this formula in D2:

    =IF(C2=$G$1,MAX(D$1:D1)+1,"-")

    to identify appropriate records with a sequential number. Copy down to the bottom of your data. Then you can use this formula in F2:

    =IFERROR(INDEX($A$2:$A$16, MATCH(ROWS($1:1),$D$2:$D$16,0))&" - "&INDEX($B$2:$B$16, MATCH(ROWS($1:1),$D$2:$D$16,0)),"")

    to bring the Area and the Item across. Copy down as required. Change the entry in G1 to see other lists.

    Hope this helps.

    Pete

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: How to get records based on a condition using Index Match?

    Another way. Not sure I've interpreted correctly.

    In G2 filled down and across until you get blanks.
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    G
    H
    1
    Monthly
    2
    Area1
    Item1
    3
    Area1
    Item2
    4
    Area1
    Item4
    5
    Area1
    Item5
    6
    Area3
    Item2
    7
    Area3
    Item3
    8
    9
    10
    11
    12
    13
    14
    15
    16
    Dave

  4. #4
    Forum Contributor
    Join Date
    11-01-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    280

    Re: How to get records based on a condition using Index Match?

    Thank you for that, this works as expected.

    I should of been more cleared with my question..

    Because I am actually going to have another 2 sheets, named "Weekly" and "Monthly". There I'll be wanting to get it's relevant values.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,585

    Re: How to get records based on a condition using Index Match?

    In G2 then copied across and down.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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. VLookup / Index-Match Multiple records to find
    By rrenzi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-15-2020, 12:46 PM
  2. [SOLVED] Index & match formulas based on two tables and condition
    By jsalotra in forum Excel General
    Replies: 3
    Last Post: 10-17-2018, 05:10 PM
  3. INDEX MATCH or VLOOKUP formula based on a condition
    By apple_tree in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-16-2016, 02:31 AM
  4. Index and Match with based on IF then condition?
    By aglander in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-08-2014, 05:59 PM
  5. [SOLVED] Index(match not pulling only 2 of five records
    By mmayna03 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-25-2012, 10:45 AM
  6. Match\Index to find all the records
    By itsmejan24 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-02-2012, 12:23 AM
  7. I wanT to extract Multiple-Records based on a condition.
    By all4excel in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-15-2007, 02:00 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