+ Reply to Thread
Results 1 to 7 of 7

Need help on Index and Match function

Hybrid View

  1. #1
    Registered User
    Join Date
    09-20-2016
    Location
    Singapore
    MS-Off Ver
    Office 2013
    Posts
    8

    Need help on Index and Match function

    Hi all,

    I am new to Index Match function.

    Need help to extract data from array data and display on different sheet in same worksheet.

    Pls find below my tables in excel,

    LOCATION SALES PERSON ITEM QTY SOLD BALANCE
    EAST MIKE RADIO 5 15
    EAST MIKE TABLE 3 10
    WEST RAY TV 1 49
    EAST SAM RADIO 3 12
    EAST BOB TABLE 9 1
    EAST SAM TV 10 39


    LOCATION MIKE RAY SAM BOB
    EAST RADIO
    WEST #N/A
    WEST TV
    EAST RADIO
    EAST RADIO
    EAST TABLE

    Problem 1 : Under "Mike", i get "N/A" for West Location. Can it be blank?
    Problem 2 : Under "Sam", can it find the next record as it captured Radio instead of TV?

    {=INDEX(C2:C7,MATCH(I4&K1,A2:A7&B2:B7,0))}
    {=INDEX(C2:C7,MATCH(I7&M1,A2:A7&B2:B7,0))}

    Thanks for your help in advance.

    Duncan

  2. #2
    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,048

    Re: Need help on Index and Match function

    Hi, welcome to the forum

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (note: this change is not optional )

    Also, it often helps if you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    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

  3. #3
    Registered User
    Join Date
    09-20-2016
    Location
    Singapore
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Need help on Index and Match function

    apologize as i am new and looking for solution in this forum.

    i have click on the "attachment" icon but just a small dialog box. Now i just managed to find out how to do it.

    i will amend the title.

    Thanks for the advise
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-20-2016
    Location
    Singapore
    MS-Off Ver
    Office 2013
    Posts
    8

    Extract sales data into another sheet using Index and Match

    Hi,

    I have attached the excel for easy reference to my problem.

    Will appreciate your help.

    Thanks alot in advance

    DK

  5. #5
    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,048

    Re: Need help on Index and Match function

    If you can change teh order of Location, so all locations are grouped...
    N
    O
    P
    Q
    R
    1
    LOCATION
    MIKE
    RAY
    SAM
    BOB
    2
    EAST
    RADIO RADIO TABLE
    3
    EAST
    TABLE TV
    4
    EAST
    5
    EAST
    6
    WEST
    7
    WEST

    then O2=IFERROR(INDEX($C:$C,SMALL(IF(($A$2:$A$7=$N2)*($B$2:$B$7=J$1),ROW($A$2:$A$7)),ROWS($A$1:$A1))),"")
    ...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.
    then copy down and across as needed

  6. #6
    Registered User
    Join Date
    09-20-2016
    Location
    Singapore
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Need help on Index and Match function

    Hi FDibbins,

    @O2, =IFERROR(INDEX($C:$C,SMALL(IF(($A$2:$A$7=$N2)*($B$2:$B$7=J$1),ROW($A$2:$A$7)),ROWS($A$1:$A1))),""), i got Radio

    @O3, =IFERROR(INDEX($C:$C,SMALL(IF(($A$2:$A$7=$N3)*($B$2:$B$7=J$1),ROW($A$2:$A$7)),ROWS($A$1:$A1))),""), i got Radio again.

    Sorry, what should i enter for the function @O3.

    Apologise, dont quite understand the iferror function.

    Thanks alot in advance.

    Best rgds
    Duncan

  7. #7
    Registered User
    Join Date
    09-20-2016
    Location
    Singapore
    MS-Off Ver
    Office 2013
    Posts
    8

    Re: Need help on Index and Match function

    Hi FDibbins,

    I got it already.

    Thanks alot for your great help.

    Much appreciated.

    Best rgds
    Duncan

+ 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: 1
    Last Post: 06-10-2015, 12:56 PM
  2. Problems applying INDEX-MATCH-MATCH function on other data
    By LennartB in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-13-2015, 05:33 AM
  3. function INDEX MATCH MATCH doesn´t work
    By leonelcd in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-31-2015, 11:36 AM
  4. [SOLVED] Stuck on Match function with #N/A; attempting to reverse Index/Match
    By Cappytano in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-10-2014, 06:39 PM
  5. Replies: 6
    Last Post: 03-17-2014, 08:10 PM
  6. Replies: 3
    Last Post: 06-17-2013, 12:37 PM
  7. Replies: 2
    Last Post: 03-20-2009, 01:29 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