+ Reply to Thread
Results 1 to 15 of 15

Cant get index match formula to work

  1. #1
    Registered User
    Join Date
    08-03-2010
    Location
    puckeridge,herts
    MS-Off Ver
    Excel 2003
    Posts
    43

    Cant get index match formula to work

    Hi All

    I cant seem to get an index match formula to work.

    I have got a data input sheet, and a monthly report sheet which pulls data from the input sheet. On the input sheet, there are multiple rows with the same date.

    On the input sheet cell A3 has date "31/12/2013" and cell B3 has value "8". Cell A4 also has date "31/12/13" and cell B4 has value "1". Now, on the report sheet, the problem I have is that I cant get B4 value "1". Instead it returns the B3 value "8".

    The forumla I have used is: =IFERROR(INDEX(guns,MATCH(A3,date,0)),"") it is an array formula, cant do the correct parenthatsis.

    what am I doing wrong?

    thanks
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Cant get index match formula to work

    I see people struggle with stuff like this, trying to get a second sheet to display a subset of data from a first sheet, and the second sheet is literally an exact duplicate of the first in terms of layout. IN this scenario, I wonder why the second sheet, and thus the problem, is needed at all.

    If all you want is to see a full representation of the same data in a smaller subset, do that on the original sheet using an Autofilter and all these struggles go away.


    1) Delete the Monthly Report sheet
    2) Rename the "input" sheet to "Data", cause that's what it is.
    3) Click on row 1 and turn on the Data > Filter
    4) Use the drop down in column A to apply a filter to show all of December 2013 only
    5) Print, edit the visible rows as needed, then do a SHOW ALL on column A to see all data again.


    The Autofilter was invented for the need you're demonstrating.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Cant get index match formula to work

    Eevntually enter
    Please Login or Register  to view this content.
    in B3, confirm with CSE and pull down as neede

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Cant get index match formula to work

    Quote Originally Posted by JBeaucaire View Post
    The Autofilter was invented for the need you're demonstrating.
    Pivot Tables as well.

  5. #5
    Registered User
    Join Date
    08-03-2010
    Location
    puckeridge,herts
    MS-Off Ver
    Excel 2003
    Posts
    43

    Re: Cant get index match formula to work

    Thanks for all the responses. I thought of auto filter, but wanted a report sheet as there will be more info displayed there. I dont know enough about pivot tables to attempt them yet.

    With regards to the formula, I have used it my example spreadsheet, and it works perfectly. However, in my real spreadsheet, it doesnt work as well. It manages to pull some data from the input page, and in some cells, it returns a blank. (it did return a #num erro, but I started the formula with iferror)

    any more suggestions?

    thanks

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Cant get index match formula to work

    Without seeing the real data, difficult to say

  7. #7
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Cant get index match formula to work

    Hi
    What about this array formula. paste to b3 cell and drag down
    =INDEX(input!B:B,SMALL(IF(A3=input!$A$3:$A$23,ROW(input!$A$3:$A$23),""),COUNTIF('monthly report'!$A$3:A3,'monthly report'!A3)))
    Attached Files Attached Files
    Appreciate the help? CLICK *

  8. #8
    Registered User
    Join Date
    08-03-2010
    Location
    puckeridge,herts
    MS-Off Ver
    Excel 2003
    Posts
    43

    Re: Cant get index match formula to work

    Hi
    thanks for response
    it works well in the example, but not on my real spreadsheet.
    Can i attach my real one or will that go against the forum rules?

  9. #9
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Cant get index match formula to work

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  10. #10
    Registered User
    Join Date
    08-03-2010
    Location
    puckeridge,herts
    MS-Off Ver
    Excel 2003
    Posts
    43

    Re: Cant get index match formula to work

    Hi

    attached is a mock sheet which hopefully explains what i am trying to achieve.

    Thanks
    Attached Files Attached Files

  11. #11
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Cant get index match formula to work

    or like this
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  12. #12
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Cant get index match formula to work

    b5 cell
    =IFERROR(INDEX(DATA!$B$5:$F$20,SMALL(
    IF(IF(MONTH(DATA!$B$5:$B$20)='REPORT - BEFORE'!$E$2,DATA!$A$5:$A$20,0),IF(MONTH(DATA!$B$5:$B$20)='REPORT - BEFORE'!$E$2,DATA!$A$5:$A$20,0),""),'REPORT - BEFORE'!$A5),MATCH('REPORT - BEFORE'!B$4,DATA!$B$4:$F$4,0)),"") CSE
    Attached Files Attached Files

  13. #13
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Cant get index match formula to work

    using your workbook
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    08-03-2010
    Location
    puckeridge,herts
    MS-Off Ver
    Excel 2003
    Posts
    43

    Re: Cant get index match formula to work

    That works a treat. Very much appreicated. thanks

  15. #15
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Cant get index match formula to work

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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] Combined INDEX and MATCH formula will not work - pls help!
    By Postlki1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-06-2013, 08:03 AM
  2. Replies: 3
    Last Post: 03-31-2013, 01:53 PM
  3. [SOLVED] any Ideas Why this INDEX MATCH formula doesnt work ?
    By ecelaras in forum Excel General
    Replies: 13
    Last Post: 11-30-2012, 06:55 AM
  4. Index Match Index Formula work slow
    By avk in forum Excel General
    Replies: 9
    Last Post: 03-07-2012, 02:19 PM
  5. Excel 2007 : Index and Match Formula does not work
    By Porterrob in forum Excel General
    Replies: 1
    Last Post: 11-01-2010, 11:09 AM

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