+ Reply to Thread
Results 1 to 11 of 11

two value index not working

  1. #1
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    534

    two value index not working

    I am trying to use a two value index to return a percentage number, I have included my spreadsheet for assistance.

    The formula is in cell M3. I cant figure out why it is not working.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,073

    Re: two value index not working

    It needs to be confirmed with Ctrl Shift Enter, not just Enter.

  3. #3
    Valued Forum Contributor
    Join Date
    06-02-2012
    Location
    London, England
    MS-Off Ver
    365
    Posts
    397

    Re: two value index not working

    It's an array formula and therefore needs to be confirmed with Ctrl+Shift+Enter rather than just Enter.

    You can tell if you've done it correctly as the formula will be wrapped in { }

    Beth.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,714

    Re: two value index not working

    The formula in M3 is an array formula, and this means that you need to commit it using the key combination of Ctrl-Shift and Enter (CSE), rather than the usual Enter. If you do this correctly, then Excel will insert curly brackets { and } around the formula when viewed in the formula bar, but you must not type these yourself. If you need to amend or edit the formula in some way, then you need to use CSE again.

    You can copy the formula down using your usual method(s).

    Hope this helps.

    Pete

  5. #5
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    534

    Re: two value index not working

    two questions. can I pull this formula down to copy to the other cells and if not is there a way to do this that is is not an array formula?

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,073

    Re: two value index not working

    You will need to change it to
    =INDEX($H$3:$H$200, MATCH(1,($L$1=$B$3:$B$200)*($M$2=$C$3:$C$200),0))
    Confirmed with Ctrl Shift Enter, then you can drag it down as normal.

  7. #7
    Valued Forum Contributor
    Join Date
    06-02-2012
    Location
    London, England
    MS-Off Ver
    365
    Posts
    397

    Re: two value index not working

    Once you've confirmed the formula correctly, yes you can copy it down by dragging it.

    Beth.

  8. #8
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    534

    Re: two value index not working

    I did execute the array and it worked with a problem. I need the formula to return by the line. When I executed the formula it returned the nearest correct answer that it could find. I fixed this by tightening up the array so that is only looks at the current row but when i copied down it did not work again.

    This is the formula right now.
    Please Login or Register  to view this content.

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,073

    Re: two value index not working

    It's not entirely clear what you are trying to do, but does this work
    =IF(AND(B3=$L$1,C3=$M$2),H3,"")

  10. #10
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    534

    Re: two value index not working

    Yes that's it exactly!!

  11. #11
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,073

    Re: two value index not working

    You're welcome & thanks for the feedback

+ 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 not working
    By kriminaal in forum Excel General
    Replies: 4
    Last Post: 11-16-2016, 09:33 AM
  2. [SOLVED] New to INDEX...INDEX FORMULA NOT WORKING
    By 34_CHEVY in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 03-31-2016, 02:10 PM
  3. [SOLVED] help index and match macro not working but formula working??
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-28-2016, 06:37 AM
  4. [SOLVED] Index Formula not working
    By djmatok in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-10-2014, 03:22 PM
  5. Correct/Working (Index,Match) formula not working between cells
    By barnerd in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-11-2014, 01:20 PM
  6. Replies: 2
    Last Post: 05-24-2013, 09:32 AM
  7. MIN(INDEX(( 'Not working
    By profector in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-24-2008, 07:34 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