+ Reply to Thread
Results 1 to 6 of 6

INDEX MATCH to display unique results

Hybrid View

  1. #1
    Registered User
    Join Date
    10-11-2017
    Location
    UK
    MS-Off Ver
    2016
    Posts
    60

    INDEX MATCH to display unique results

    Hi,

    I have a small issue getting the formula to correctly to pull each unique date record for an exceptions report.

    Exceptions tab is where the end user would log each issue and the date (week column is a helper)
    Report tab is a sample of the report page I am setting up

    Selecting the week from a drop down menu on the report sheet pulls me the first record of the selected week from the exceptions page, which loads each line on the report page with the same result.
    I need the report page to list every record for the selected week not just the first.
    Secondly any lines on the report sheet that don't require a record i.e there is only 1 record for example need to be left blank.

    I have tried the following formula from something else I did but with no avail and cant seem to see what I am missing or doing wrong
    p.s it was entered as an Array ctrl/shift/enter

    =INDEX(tbl_Exceptions[Date],MATCH(0,COUNTIF(tbl_Exceptions[Week],$K$3,),0))
    Any help would be appreciated
    Thanks
    Mark
    Attached Files Attached Files

  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: INDEX MATCH to display unique results

    T start with, you can use thos slightly shorter formula to get the week num...
    =IF(B3="","",WEEKNUM(B3))

    Try this ARRAY formula...
    =IFERROR(INDEX(Exceptions!B:B,SMALL(IF(Exceptions!$D$3:$D$8=Report!$K$3,ROW(Exceptions!$B$3:$B$8)),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.
    Copy across, then copy down as needed
    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
    10-11-2017
    Location
    UK
    MS-Off Ver
    2016
    Posts
    60

    Re: INDEX MATCH to display unique results

    FDibbins,

    Cheers the Array formula works a treat, I will spend some time and break it down so I can understand it better for future use

    As for the week num, im so used to doing it the other way due to using it with SUMIF and COUNTIF's lol

  4. #4
    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: INDEX MATCH to display unique results

    Happy to help and thanks for the feedback

    Regarding the weeknum, your way is most certainly not wrong (and I can fully understand habit lol), but using fewer functions is, I believe, more efficient - not to mention a lot less typing

  5. #5
    Registered User
    Join Date
    10-11-2017
    Location
    UK
    MS-Off Ver
    2016
    Posts
    60

    Re: INDEX MATCH to display unique results

    Habit does sometimes get the better of us I must admit

    I do agree that cleaner formulas are better on multiple levels, and by my own admission my knowledge is getting better all the time the more I play about and with help for folks like yourself

  6. #6
    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: INDEX MATCH to display unique results

    Practice makes (approaching) perfect

+ 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. Index and match display multiple results?
    By oskar.dlugolecki in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-07-2017, 07:24 AM
  2. Replies: 2
    Last Post: 03-15-2017, 08:22 AM
  3. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  4. [SOLVED] Index:Match to display unique instances only
    By mitch1976 in forum Excel General
    Replies: 16
    Last Post: 01-27-2016, 04:12 PM
  5. [SOLVED] Using INDEX MATCH to return unique values for non-unique search term
    By rico_suave in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-03-2015, 01:53 AM
  6. Replies: 7
    Last Post: 06-27-2014, 02:26 AM
  7. [SOLVED] Display search results inluding results that match patrially
    By RichTea88 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-06-2013, 08:52 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