+ Reply to Thread
Results 1 to 12 of 12

Index Match Large Duplicate Values

  1. #1
    Registered User
    Join Date
    09-13-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Index Match Large Duplicate Values

    I have an IndexMatch multiple criteria that i need to Match and then solve for the 2nd largest value. I have tried everything ...nothing is working
    Im trying to match the Location and Month and then show the 2nd largest Usage value




    Could anyone help with this...ive been up for hours trying to fix this...
    Attached Files Attached Files
    Last edited by lalahaedong_excel; 09-22-2017 at 01:00 PM.

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Index Match Large Duplicate Values

    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    1
    Location Name Store Number Month Begin Date End Date Usage Location Name Store Number Month Begin Date End Date Usage
    2
    00100-MILL HALL 00100
    Sep-2016
    02.09.2016
    03.10.2016
    0
    00100-MILL HALL 00100
    42614
    42615
    42646
    96192
    3
    00100-MILL HALL 00100
    Sep-2016
    02.09.2016
    03.10.2016
    96192
    4
    00100-MILL HALL 00100
    Oct-2016
    04.10.2016
    01.11.2016
    83904
    5
    00100-MILL HALL 00100
    Oct-2016
    04.10.2016
    01.11.2016
    0
    6
    00100-MILL HALL 00100
    Nov-2016
    02.11.2016
    01.12.2016
    0
    7
    00100-MILL HALL 00100
    Nov-2016
    02.11.2016
    01.12.2016
    86976
    8
    00100-MILL HALL 00100
    Dec-2016
    02.12.2016
    04.01.2017
    100032
    9
    00100-MILL HALL 00100
    Dec-2016
    02.12.2016
    04.01.2017
    0
    10
    00100-MILL HALL 00100
    Jan-2017
    05.01.2017
    02.02.2017
    86976
    11
    00100-MILL HALL 00100
    Jan-2017
    05.01.2017
    02.02.2017
    0
    12
    00100-MILL HALL 00100
    Feb-2017
    03.02.2017
    03.03.2017
    83712
    13
    00100-MILL HALL 00100
    Feb-2017
    03.02.2017
    03.03.2017
    0
    14
    00100-MILL HALL 00100
    Mar-2017
    04.03.2017
    03.04.2017
    0
    15
    00100-MILL HALL 00100
    Mar-2017
    04.03.2017
    03.04.2017
    90624
    16
    00100-MILL HALL 00100
    Apr-2017
    04.04.2017
    05.05.2017
    0
    17
    00100-MILL HALL 00100
    Apr-2017
    04.04.2017
    05.05.2017
    89856
    18
    00100-MILL HALL 00100
    May-2017
    06.05.2017
    02.06.2017
    81600
    19
    00100-MILL HALL 00100
    May-2017
    06.05.2017
    02.06.2017
    0
    20
    00100-MILL HALL 00100
    Jun-2017
    03.06.2017
    03.07.2017
    0
    21
    00100-MILL HALL 00100
    Jun-2017
    03.06.2017
    03.07.2017
    95040
    22
    00100-MILL HALL 00100
    Jul-2017
    04.07.2017
    02.08.2017
    0
    23
    00100-MILL HALL 00100
    Jul-2017
    04.07.2017
    02.08.2017
    89472
    24
    00100-MILL HALL 00100
    Aug-2017
    03.08.2017
    31.08.2017
    66624
    25
    00100-MILL HALL 00100
    Aug-2017
    03.08.2017
    31.08.2017
    0


    Try

    I2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Copy across
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,427

    Re: Index Match Large Duplicate Values

    An odd example to have attached. You mention matching by location (but show only one location) and want the second largets value for a month yet they are all zero).

    So this is a guess as to what you actually want...

    =INDEX(F:F,LARGE(IF($A$2:$A$25=$J$4,IF($C$2:$C$25=$J$5,ROW($C$2:$C$25))),2))

    an array formula. Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    09-13-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Index Match Large Duplicate Values

    Sorry, I meant 1st by location (Column A) and then by the Month ( Column C ). Its actually a very large data set and I should have changed some of the Location Names.

  5. #5
    Registered User
    Join Date
    09-13-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Index Match Large Duplicate Values

    The purpose of the document is to find the 2nd largest Value in a Month at a Location. Most of them will be zeroes but I need to capture the information regardless.
    Attached Files Attached Files

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,427

    Re: Index Match Large Duplicate Values

    It shouldnt matter what order criteria are applied in? Did the sheet that I attached not provide ecpected answers? Awat from PC for a while...

  7. #7
    Registered User
    Join Date
    09-13-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Index Match Large Duplicate Values

    It worked but i actually need the output to be line by line ...
    Last edited by lalahaedong_excel; 09-22-2017 at 01:01 PM.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,427

    Re: Index Match Large Duplicate Values

    Use this array formula in H2:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Last edited by Glenn Kennedy; 09-21-2017 at 12:07 PM.

  9. #9
    Registered User
    Join Date
    09-13-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Index Match Large Duplicate Values

    This worked PERFECTLY.

    I have one more question, how would write the formula to find the difference between the largest and 2nd largest usage?

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,427

    Re: Index Match Large Duplicate Values

    Is this what you wanted?
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    09-13-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Index Match Large Duplicate Values

    Absolutely! Thank you.

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,427

    Re: Index Match Large Duplicate Values

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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 Large Duplicate Values
    By auxaurores in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-12-2016, 05:02 AM
  2. Match and Index with Duplicate values
    By shortracer5 in forum Excel General
    Replies: 1
    Last Post: 09-09-2016, 05:25 AM
  3. [SOLVED] Handling Duplicate Entries with Index/Match/Large in Column Data
    By TwiceBorn in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-12-2016, 02:11 PM
  4. Index Match & Duplicate values
    By Shaulyt in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2016, 05:23 PM
  5. [SOLVED] INDEX, MATCH & LARGE trouble with duplicate values
    By paulstuartbullock in forum Excel General
    Replies: 4
    Last Post: 08-04-2015, 11:17 PM
  6. [SOLVED] Help with Index/Match/Large problem with duplicate values
    By enphynity in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-31-2013, 09:56 AM
  7. Index, Match, Large Function returning duplicate names
    By RNeel55 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-08-2013, 04:09 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