+ Reply to Thread
Results 1 to 9 of 9

index and match function help required

Hybrid View

  1. #1
    Registered User
    Join Date
    07-25-2016
    Location
    NORTHUMBERLAND UK
    MS-Off Ver
    2013
    Posts
    3

    index and match function help required

    hi there

    i am having trouble with a formula using the index and match function. the table i am using has a lot of duplicate numbers which i require. The problem i have with the formula is it searches the array and keeps returning the first value it finds. is there a way to make it find the first value and then ignore it and move onto the next duplicate value and return the value i require.
    attached is a small sample(which will probably explain it better than i have) and i have highlighted the areas i have the problems with.
    Is there a way to do this without using VBA as i have zero knowledge of it.

    many thanks
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: index and match function help required

    No attachment
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: index and match function help required

    To attach a file to your post...

    Click the Reply button to open the Reply Editor
    Click the Go Advanced button
    Scroll down until you see the Manage Attachments button and click that
    Click the Browse button and select your file
    Click the Open button
    Click the Upload button
    Click the Close Window button
    Click the Submit Reply button

  4. #4
    Registered User
    Join Date
    07-25-2016
    Location
    NORTHUMBERLAND UK
    MS-Off Ver
    2013
    Posts
    3

    Re: index and match function help required

    hopefully file is attached
    Attached Files Attached Files

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: index and match function help required

    This seems kind of odd.

    I'm assuming your real file is setup differently.

    This array formula** entered in D4 and copied down:

    =INDEX(B:B,SMALL(IF(A$4:A$18=A4,ROW(A$4:A$18)),COUNTIF(A$4:A4,A4)))

    This array formula** entered in

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

  6. #6
    Registered User
    Join Date
    07-25-2016
    Location
    NORTHUMBERLAND UK
    MS-Off Ver
    2013
    Posts
    3

    Re: index and match function help required

    thanks guys for the help. I am just a beginner at excel functions and formulas and i am fast finding how powerful they can be used in the right context. I like both options supplied as the same result is achieved. I liked the sample file by chullan as I had tried the count function in a helper column but just wasn't sure how it would help me. Using the indirect function looks interesting as well. The above formula is an all in one function and doesn't require helper columns which is handy to know if I cant include a helper column in my worksheet. I will now look at both of these and break it down and understand how these work for future use.
    I liked to thank both of you for the quick response and help. I'm sure this wont be the last time but for now I think we can called this SOLVED.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: index and match function help required

    Good deal. Thanks for the feedback!

  8. #8
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    447

    Re: index and match function help required

    Quote Originally Posted by jinx31 View Post
    thanks guys for the help. I am just a beginner at excel functions and formulas and i am fast finding how powerful they can be used in the right context. I like both options supplied as the same result is achieved. I liked the sample file by chullan as I had tried the count function in a helper column but just wasn't sure how it would help me. Using the indirect function looks interesting as well. The above formula is an all in one function and doesn't require helper columns which is handy to know if I cant include a helper column in my worksheet. I will now look at both of these and break it down and understand how these work for future use.
    I liked to thank both of you for the quick response and help. I'm sure this wont be the last time but for now I think we can called this SOLVED.
    Hi jinx31,

    Thanks for the feedback.

    If your problem is solved,Please "add Rep" for all the members who helped you reach the solution.
    Last edited by chullan88; 10-25-2016 at 01:59 AM.

  9. #9
    Forum Contributor
    Join Date
    07-12-2015
    Location
    Dubai,UAE
    MS-Off Ver
    Office 365
    Posts
    447

    Re: index and match function help required

    Quote Originally Posted by jinx31 View Post
    hi there

    i am having trouble with a formula using the index and match function. the table i am using has a lot of duplicate numbers which i require. The problem i have with the formula is it searches the array and keeps returning the first value it finds. is there a way to make it find the first value and then ignore it and move onto the next duplicate value and return the value i require.
    attached is a small sample(which will probably explain it better than i have) and i have highlighted the areas i have the problems with.
    Is there a way to do this without using VBA as i have zero knowledge of it.

    many thanks
    Hi,

    Find attached.
    Done using 2 helper columns.
    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. Replies: 5
    Last Post: 10-16-2016, 02:33 AM
  2. Required Index Match with If function
    By siroopm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-29-2016, 04:54 AM
  3. [SOLVED] Index & Match help required
    By DeeEmmEss in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-08-2015, 06:23 AM
  4. [SOLVED] Formula required (Index, Match)
    By nagesh.tvsr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-18-2014, 01:30 AM
  5. [SOLVED] Help required with INDEX and multiple MATCH function - Excel 2007
    By saundersben50 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-03-2013, 12:49 PM
  6. Index Match only 4 results required
    By pepe.r.taylor in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-31-2011, 11:28 PM
  7. Excel 2007 : INDEX/MATCH help required
    By 5foot9 in forum Excel General
    Replies: 1
    Last Post: 07-22-2011, 02:02 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