+ Reply to Thread
Results 1 to 16 of 16

Indexing and Matching

  1. #1
    Registered User
    Join Date
    12-26-2012
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    16

    Exclamation Indexing and Matching

    I am trying to use the index and the match function.

    Assume field E27 and F 27 with the values as shown below

    =INDEX({"1","2","3","4","5","6","7","8","9","10"},MATCH(E27,{"Remote","Unlikely","Possible","Likely","Almost Certain"},FALSE)*MATCH(F27,{"Insignificant","Minor","Moderate","Significant","Severe"},FALSE))

    If i click on "Remote" and the values in F27, it displays correctly 1,2,3,4,5

    But, if i click the next one "Unlikely" and values in F27, it displays 2,4,6,8,10 - i would like it to display 6,7,8,9,10

    Can you please let me know what should be modified so i get what i want?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Indexing and Matching

    Post a sample workbook showing this, and manually mockup the results you're actually looking for in the spot's it's not working.

    Click GO ADVANCED and use the paperclip icon to post up a copy of your workbook.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    12-26-2012
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    16

    Exclamation Re: Indexing and Matching

    Attached is the file as requested.

    Please change Column A and see how the Column C values changes from 1 through 5 for every change in Column B but when i change Column A now to the second value in the drop down, and change column B, Column C does not show me 6 through 10 but instead 2,4,6,8,10 - i understand why is this but want to display 6 through 10, in other words whatever i want in the index array.
    Attached Files Attached Files

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Indexing and Matching

    Try this instead..

    Please Login or Register  to view this content.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Registered User
    Join Date
    12-26-2012
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Indexing and Matching

    Hi, I dont need the numbers displayed like 6 through 10. Please see my workbook and the example

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Indexing and Matching

    Hi, I dont need the numbers displayed like 6 through 10. Please see my workbook and the example
    Not sure I understand your requirement. Dosen't the solution provided give you desired results?

  7. #7
    Registered User
    Join Date
    12-26-2012
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Indexing and Matching

    No, it does not. I dont want the cells to display 6 through 10 hard coded.

    If you open my spreadsheet and select "Remote" and any combination from column B, column C displays you values from 1 through 5 which is good but if you select the next drop down from Column A and values from Column B, now the result is not 6 through 10 (I want to display the values in place of 6 through 10 and not the numbers 6 through 10) it displays result 2,4,6,8,10 (this is because if you imagine a 2 by 2 matrix, when you select column A and B, it multiplies A which is 1 with column B which is 1, 2, 3,4 and 5 hence the results 1,2,3,4,and 5 -

    Now if you select the select one in column A, the value is 2 now and multipled with column B , gives 2,4,6,8,10 but i dont want that instead i want it to display what i need which is value 6,7,8,9,10 because the contents in 6,7,8,9,10 are not 1,2,3,4,5.

    Here is the formula

    =INDEX({"1","2","3","4","5","6","7","8","9","10"},MATCH(E27,{"Remote","Unlikely","Possible","Likely","Almost Certain"},FALSE)*MATCH(F27,{"Insignificant","Minor","Moderate","Significant","Severe"},FALSE))

    Please open my spreadsheet and correlate with my explanation.

  8. #8
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Indexing and Matching

    Aah I get it now..

    Use this..

    Please Login or Register  to view this content.
    since there would be 25 alternative combinations. Replace the 1-25 numbers with whatever results you desire

  9. #9
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Indexing and Matching

    @ xl

    Quote Originally Posted by Ace_XL View Post
    Not sure I understand your requirement. Dosen't the solution provided give you desired results?
    You need to look at post #5. They did not want the numbers "displayed like 6 through 10"

  10. #10
    Registered User
    Join Date
    12-26-2012
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Indexing and Matching

    Thanks so much. I got the desired results. You are amazing.

    Happy New Year!!!!

  11. #11
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Indexing and Matching

    I haven't tested this thoroughly, but does this not do the same?
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  12. #12
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Indexing and Matching

    To insure others do not continue to work on your issue, if your original query is resolved, please select Thread Tools from the menu above and mark the thread as solved. Thanks.

  13. #13
    Registered User
    Join Date
    12-26-2012
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Indexing and Matching

    I have two columns, Column A has numbers and Column B has text (A through E for the sake of simplicity) - i would have to display the reply in Column C as numbers by multiplying Column A and B - How do i convert Column B into numbers and then multiply with Column A values?

  14. #14
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Indexing and Matching

    Is this essentially a new question?

  15. #15
    Registered User
    Join Date
    12-26-2012
    Location
    NY
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Indexing and Matching

    Kinda, but its all part of the above indexing and matching question.

  16. #16
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Indexing and Matching

    Posting new questions in old threads is the number 1 way to leave yourself waiting. Posting new threads with new titles and a new sample workbook demonstrating your new question and mockup of your new desired results will draw the attention of new eyes almost immediately and greatly reduce the waiting. Leave this old thread SOLVED is my recommendation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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