+ Reply to Thread
Results 1 to 9 of 9

Index/Match, Multiple Critiera with MIN (or SMALL)

  1. #1
    Registered User
    Join Date
    02-23-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    39

    Index/Match, Multiple Critiera with MIN (or SMALL)

    Hi there

    I'm trying to streamline some of my workload. I often use route planning software and can generate an export with a breakdown of the entire plan (but can not break it down any further unfortunately).

    As I need to show a break down per customer group (It's never more than 3 different customer groups - but each customer could have 5 call points for example), I've created a custom summary sheet, where I paste the exported CSV into the background so I can perform all reavent calculations.

    In my summary sheet, I have overall totals, customer A totals, Customer B totals etc.

    All is working well, until I get to the time that the customer is started.

    As it stands, for customer A, I've used the following array formula:

    Please Login or Register  to view this content.
    This works great...until I get to a couple of routes where the sequential order at this customers first call point is any other sequence than 1 (i.e. it could be 5).

    I imagine that in the last criteria of the index/match, I need to somehow incorporate a MIN or SMALL function to get the correct sequence number that this starts at but I'm really struggling.

    All the criteria's I need to match up are in the data (Route Number, Customer Group the call belongs to and Sequence)

    Is any one able to offer any help, please? I'm really scratching my head over this one!
    Attached Files Attached Files
    Last edited by lookingforhelp1; 11-04-2015 at 11:24 AM.

  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 2403
    Posts
    44,116

    Re: Index/Match, Multiple Critiera with MIN (or SMALL)

    Can you post a sample of your sheet, so that we can see what you mean. Incidentally, using whole column ranges in the MATCH part of that formula will slow things dow n a lot. Can't you use a couple of Named Ranges or sensible end points to speed things up?
    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
    11-04-2013
    Location
    Chesham
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Index/Match, Multiple Critiera with MIN (or SMALL)

    It's difficult to help without seeing your work but in case this helps, you can use MIN and IF as an array, e.g. below to see if value in A1 matches any value in array (A2:A5) and where it does find the MIN in the adjacent cells

    Please Login or Register  to view this content.
    as an array

    so if A1 is found in A3, it will find the smallest number between B3 and F3

    You can of course use AND within that IF to add multiple conditions

  4. #4
    Registered User
    Join Date
    02-23-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    39

    Re: Index/Match, Multiple Critiera with MIN (or SMALL)

    Quote Originally Posted by Glenn Kennedy View Post
    Can you post a sample of your sheet, so that we can see what you mean. Incidentally, using whole column ranges in the MATCH part of that formula will slow things dow n a lot. Can't you use a couple of Named Ranges or sensible end points to speed things up?
    Sure thing, I've attached it to my original post for you.

    It's just an example of one route (with all confidential data ommitted, and I've also removed some data that was irrelavent to my question).

    Just to explain with the sample, if I wanted to show the start time where we started Customer Group B, this would start at sequence 5, so in the summary I've made, I'd expect to see Customer Group 2 starts at 09:41am.

    (Ignore the "end time" and the "hours" time for now, these are just there for my next task of calculating the end times)

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Index/Match, Multiple Critiera with MIN (or SMALL)

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. 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 shown, mock them up manually if necessary.

    Remember to desensitize the data.

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

    View Pic
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Registered User
    Join Date
    02-23-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    39

    Re: Index/Match, Multiple Critiera with MIN (or SMALL)

    Quote Originally Posted by newdoverman View Post
    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. 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 shown, mock them up manually if necessary.

    Remember to desensitize the data.

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

    View Pic

    It's already attached but your reply must have crossed over with my attachment.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Index/Match, Multiple Critiera with MIN (or SMALL)

    Try this minor adjustment to the formula in K3 of Summary.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Then apply that change i.e. [(1='Core Data'!$B$2:$B$30) -- > ('Core Data'!$B$2:$B$30>=1)] to G3. It returns 09:41 in your example and also continues to return 6:00 in G3. How does it do with the rest of your live data?

    Edit Afterthoughts -- upon further review this formula does not take other issues into consideration. Sorry. Please see my next post.
    Last edited by FlameRetired; 11-04-2015 at 02:12 PM. Reason: additional details
    Dave

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Index/Match, Multiple Critiera with MIN (or SMALL)

    Answered my own question. That formula above will continue to return 9:41 when copied down. If I understand the rest of the mission, this will return the sequential times from Core Data and limit the number of returns to Total Call points. Array-entered in K3
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Index/Match, Multiple Critiera with MIN (or SMALL)

    Perhaps a Pivot Table summary might suffice
    Attached Files Attached Files

+ 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. Match Index, Small Index with Concatenate
    By kharding15 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-30-2015, 05:38 PM
  2. [SOLVED] Using Index match and small to come up with different results from same lookup
    By sirbletchley in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-19-2015, 07:37 PM
  3. [SOLVED] Index Match Small with duplicate value.
    By n07cn3 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-15-2014, 07:39 PM
  4. problems using SMALL and INDEX(MATCH) in a table
    By lookingforhelp2014 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-16-2014, 11:12 AM
  5. Index( Match( Small( If
    By TravCAH in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-30-2013, 08:41 AM
  6. [SOLVED] INDEX MATCH SMALL ROW, Double criteria Lookup
    By GP_SRT in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-22-2013, 11:15 AM
  7. Match/index/large/small - need for top and low scores
    By Lenisghio in forum Excel General
    Replies: 1
    Last Post: 05-29-2012, 10:13 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