+ Reply to Thread
Results 1 to 11 of 11

Match and Index function with repeated values

  1. #1
    Registered User
    Join Date
    06-02-2014
    Location
    Ontario, Canada
    Posts
    37

    Match and Index function with repeated values

    Hey guys,

    I am using a formula that tells you what kind of learning behaviour you have based on a score you receive after answering a bunch of questions. There are 3 behaviours. I have been using this formula: INDEX(Calculations!L20:L22,MATCH(MAX(D38:D40),D38:D40,0) as a part of my if statement to tell what kind of learner the person is. The only issue is that when they receive the same score for 2 of the behaviours, it only tells them they have one behaviour. Is there anyway I can change the function to make it so it says you are a ___ learner AND a ___ learner?

    This is the entire formula if it helps to see it. The ISBLANK function is to make sure that they answer every question before seeing their associated behaviour.

    =IF(OR(ISBLANK(K11), ISBLANK(K12), ISBLANK(K13), ISBLANK(K14), ISBLANK(K15), ISBLANK(K16), ISBLANK(K17), ISBLANK(K18), ISBLANK(K19), ISBLANK(K20), ISBLANK(K21), ISBLANK(K22), ISBLANK(K23), ISBLANK(K24), ISBLANK(K25), ISBLANK(K26), ISBLANK(K27), ISBLANK(K28), ISBLANK(K29), ISBLANK(K30), ISBLANK(K31), ISBLANK(K32), ISBLANK(K33), ISBLANK(K34)), " ", INDEX(Calculations!L20:L22,MATCH(MAX(D38:D40),D38:D40,0)))

    Thanks for the help. I'll post more details if you need them.

  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,063

    Re: Match and Index function with repeated values

    Others might cope without seeing an example spreadsheet (no confidential data), but I can't!! can you post a suitable example, showing at least one case of an equal score against two cetegories?
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    06-02-2014
    Location
    Ontario, Canada
    Posts
    37

    Re: Match and Index function with repeated values

    Here is the sample book.Sample.xlsx

  4. #4
    Registered User
    Join Date
    06-02-2014
    Location
    Ontario, Canada
    Posts
    37

    Re: Match and Index function with repeated values

    Quote Originally Posted by Glenn Kennedy View Post
    Others might cope without seeing an example spreadsheet (no confidential data), but I can't!! can you post a suitable example, showing at least one case of an equal score against two cetegories?
    Have any luck at it?

  5. #5
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Match and Index function with repeated values

    Here is what I would do. I hope you can make use of some of it.
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

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

    Re: Match and Index function with repeated values

    So far as I can see, Jacc has answered your Q. If not - shout.

  7. #7
    Registered User
    Join Date
    06-02-2014
    Location
    Ontario, Canada
    Posts
    37

    Re: Match and Index function with repeated values

    Thank you for your help. Looks like you made the calculation process a lot better too. How would I go upon placing Sheet1 into my workbook?

  8. #8
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Match and Index function with repeated values

    You are welcome!

    Have both workbooks open.
    Right click on the sheet tab of Sheet1 and select Move or Copy. In the dialogue box you can choose the workbook on top. Tick of the copy box down to the left as well. You will have to redo all ther formulas as they will link to the old workbook.

  9. #9
    Registered User
    Join Date
    06-02-2014
    Location
    Ontario, Canada
    Posts
    37

    Re: Match and Index function with repeated values

    I was just testing out the spreadsheet again and I noticed that when just one of the options are the highest (for example visual learner is the dominant style), it still displays 'and a' underneath on Sheet1 and the Form. Any suggestions on how to fix this?

  10. #10
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Match and Index function with repeated values

    Modified the formulas, test thoroughly to see if it works.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    06-02-2014
    Location
    Ontario, Canada
    Posts
    37

    Re: Match and Index function with repeated values

    Works perfect now! Thanks

+ 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 Function with Match for Values Greater than 0
    By henraa in forum Excel General
    Replies: 5
    Last Post: 11-18-2011, 05:37 AM
  2. Lookup 2 possible values within INDEX/MATCH function.
    By Pete123abc in forum Excel General
    Replies: 2
    Last Post: 06-07-2011, 10:51 AM
  3. Index and Match function returning same values
    By Climaxgp in forum Excel General
    Replies: 4
    Last Post: 12-15-2009, 05:59 AM
  4. Index Match, repeated numbers
    By Tony Wong in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-13-2008, 07:31 PM
  5. [SOLVED] Returning row # using match or index of repeated text in a complex table
    By General in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-21-2005, 11:05 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