+ Reply to Thread
Results 1 to 8 of 8

Index/Match question

Hybrid View

  1. #1
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Index/Match question

    I would like to separate data from a long list using index/match function
    but don't know the formula, please see the attached file.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,791

    Re: Index/Match question

    Have a look here: https://www.excelforum.com/excel-gen...-criteria.html
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Index/Match question

    Hi

    Try this array formula

    Select H2:K2 and use the formula
    Formula: copy to clipboard
    =IFERROR(INDEX($A$2:$F$26,AGGREGATE(15,6,ROW($A$2:$A$26)/($B$2:$B$26=H$1)-1,ROWS($A$1:A1)),{1,4,5,6}),"")

    Note: Confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    See the file
    Attached Files Attached Files

  4. #4
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: Index/Match question

    I have copy pasted your formula and made slight changes to range

    =IFERROR(INDEX($A$2:$F$10000,AGGREGATE(15,6,ROW($A$2:$A$10000)/($B$2:$B$10000=$L$1)-1,ROWS($A$1:A1)),{1,4,5,6}),"")

    I am getting date from column 4,5,6

    Please see the attached screenshot.
    Attached Images Attached Images

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Index/Match question

    Hi
    Where are your real data?

  6. #6
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: Index/Match question

    Quote Originally Posted by José Augusto View Post
    Hi
    Where are your real data?
    Real data is in
    Column A (has date)
    Column B/C (has text)
    Column D/E/F (has numbers)
    Column G (has text)
    Column H (has text)
    Column I (has numbers)
    Column J (has text)

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

    Re: Index/Match question

    I suggest this option
    formula "Date"
    Formula: copy to clipboard
    =IFERROR(AGGREGATE(15;6;$A$2:$A$260/($B$2:$B$260=$H$1);ROWS($2:2));"")

    formula "High Low Low1"
    Formula: copy to clipboard
    =IFERROR(INDEX(D$2:D$260;AGGREGATE(15;6;ROW($1:$300)/($A$2:$A$260=$H2)/($B$2:$B$260=$H$1);COUNTIF($H$2:$H2;$H2)));"")
    Attached Files Attached Files

  8. #8
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: Index/Match question

    Quote Originally Posted by Czeslaw View Post
    I suggest this option
    formula "Date"
    Formula: copy to clipboard
    =IFERROR(AGGREGATE(15;6;$A$2:$A$260/($B$2:$B$260=$H$1);ROWS($2:2));"")

    formula "High Low Low1"
    Formula: copy to clipboard
    =IFERROR(INDEX(D$2:D$260;AGGREGATE(15;6;ROW($1:$300)/($A$2:$A$260=$H2)/($B$2:$B$260=$H$1);COUNTIF($H$2:$H2;$H2)));"")

    Your formula works...thank you so much

+ 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] Index Match Question
    By HXIO in forum Excel General
    Replies: 2
    Last Post: 09-27-2018, 06:17 AM
  2. Index / Match Question
    By xcracer41 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-10-2018, 05:41 PM
  3. [SOLVED] Quick INDEX MATCH MATCH OFFSET question
    By franb123 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-25-2017, 02:56 AM
  4. [SOLVED] Index and Match Question
    By mdt175 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-13-2015, 05:20 PM
  5. Index, match, match Question!. Seems so simple but can't figure it out...
    By huikimhuikim in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-12-2013, 01:57 PM
  6. [SOLVED] INDEX and MATCH question
    By Kabish in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-12-2012, 02:45 PM
  7. Index/Match question Need help!
    By Brian H in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-10-2005, 09:05 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