+ Reply to Thread
Results 1 to 7 of 7

Index Match with multiple criteria - Return top sellers for certain week from year data

Hybrid View

albanhac Index Match with multiple... 01-12-2016, 05:10 AM
Glenn Kennedy Re: Index Match with multiple... 01-12-2016, 05:39 AM
albanhac Re: Index Match with multiple... 01-12-2016, 05:58 AM
Khalidngo Re: Index Match with multiple... 01-12-2016, 05:58 AM
albanhac Re: Index Match with multiple... 01-12-2016, 06:01 AM
Khalidngo Re: Index Match with multiple... 01-12-2016, 06:28 AM
Glenn Kennedy Re: Index Match with multiple... 01-12-2016, 06:05 AM
  1. #1
    Registered User
    Join Date
    08-14-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    10

    Index Match with multiple criteria - Return top sellers for certain week from year data

    Hello,

    I'm currently using the following formulas to return the top 10 products with highest sales for the attached file:

    =INDEX(A:A,MATCH(LARGE(C:C,1),C:C,0))

    =INDEX(A:A,MATCH(LARGE(C:C,2),C:C,0))

    =INDEX(A:A,MATCH(LARGE(C:C,3),C:C,0))

    ...etc

    This works great and returns the top 10 for the entire year, but I would I would like to be able to also just get the top 10 for a certain week (e.g. week 52). Is there a way to do this using formulas as I would like to avoid using Pivot Tables if at all possible?

    I have tried =INDEX(A:A,MATCH(LARGE(C:C,3)&"52",C:C&B:B,0)) with no success, and I'm not really familiar enough with INDEX MATCH to understand more complex versions beyond the basics so any help would be hugely appreciated!

    Thank you!
    Attached Files Attached Files

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

    Re: Index Match with multiple criteria - Return top sellers for certain week from year dat

    You can use an array formula like this one:
    =INDEX($A$2:$A$2751,MATCH(LARGE(IF($B$2:$B$2751=52,$C$2:$C$2751),1),$C$2:$C$2751,0))

    You shouldn't use whole column ranges, as this will be a bit slow!!

    Array Formulae are a little different from ordinary formulas in that they MUST be 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 the outside of your formula. If you do not 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 braces yourself - it won't work...
    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

  3. #3
    Registered User
    Join Date
    08-14-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Index Match with multiple criteria - Return top sellers for certain week from year dat

    Amazing! Thank you so much Glenn, it works perfectly! :D

  4. #4
    Forum Contributor
    Join Date
    02-07-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    290

    Re: Index Match with multiple criteria - Return top sellers for certain week from year dat

    Hi albanhac,

    Another option could be: {array}
    =SUMIF($C$2:$C$2751,LARGE(IF($B$2:$B$2751=52,$C$2:$C$2751),1),$A$2:$A$2751)

    To be entered with CSE

    Blessing

  5. #5
    Registered User
    Join Date
    08-14-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Index Match with multiple criteria - Return top sellers for certain week from year dat

    Hi Khalidngo, thank you for you reply. Unfortunately your formula didn't work for me

  6. #6
    Forum Contributor
    Join Date
    02-07-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    290

    Re: Index Match with multiple criteria - Return top sellers for certain week from year dat

    Quote Originally Posted by albanhac View Post
    Hi Khalidngo, thank you for you reply. Unfortunately your formula didn't work for me
    Hmm dear, are you sure?
    Attached Images Attached Images

  7. #7
    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,662

    Re: Index Match with multiple criteria - Return top sellers for certain week from year dat

    You're welcome and thanks for the Rep.

+ 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 with Multiple Criteria and Multiple return values
    By Brawnystaff in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-28-2015, 10:27 AM
  2. [SOLVED] Return Multiple values from a column with index and match, and search criteria
    By marcusduton in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 02-15-2015, 09:59 PM
  3. Replies: 0
    Last Post: 07-08-2014, 09:51 AM
  4. SOS:Return multiple values against multi criteria match and index function
    By nitesh_inin in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-26-2012, 05:45 PM
  5. Replies: 3
    Last Post: 06-15-2012, 04:19 PM
  6. [SOLVED] Return a value:index/match against multiple criteria on another sheet
    By Southfish in forum Excel General
    Replies: 3
    Last Post: 04-30-2012, 11:08 PM
  7. Replies: 3
    Last Post: 08-17-2010, 02:54 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