+ Reply to Thread
Results 1 to 9 of 9

Table index result NOT returning expected value/cell

  1. #1
    Registered User
    Join Date
    07-18-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    84

    Table index result NOT returning expected value/cell

    Hello

    A colleague has set up this index table which should work simply.
    F10 - F35 is the number of 'BOXES' to look up
    G9-P9 is the area code to look up.

    Essentially when you type in area code (F6) and box count (H6) we expect a price to be shown (J6).
    At the moment, there is an error when you enter a box number over 10. I have left this in the example sheet attached - 5 for area code 13 for box count; we are expecting £322 (K22) but getting #N/A.

    I'm suspecting we are using the wrong type of look-up formula?
    I was not present when the formula was set up.

    Replica attached (for data protection)

    Please help

    Thank you
    Z
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,374

    Re: Table index result NOT returning expected value/cell

    You have your arrays the wrong way around. This should work:

    =INDEX(G10:P35,MATCH(H6,F10:F35,0),MATCH(F6,G9:P9,0))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-18-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    84

    Re: Table index result NOT returning expected value/cell

    Ali - Thanks again, you've always been prompt.

    Will give this a go.

    Will report back

  4. #4
    Registered User
    Join Date
    07-18-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    84

    Re: Table index result NOT returning expected value/cell

    Solved. Thank you.

    Just out of interest and so we don't make the same mistake again - why was it only working up to 10 boxes?

    Z

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,374

    Re: Table index result NOT returning expected value/cell

    Because you had this:

    =INDEX(G10:P35,MATCH(H6,G9:P9,0),MATCH(F6,F10:F35,0))

    instead of this:

    =INDEX(G10:P35,MATCH(H6,F10:F35,0),MATCH(F6,G9:P9,0))

    As I said before, the lookup arrays were the wrong way around.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  6. #6
    Registered User
    Join Date
    07-18-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    84

    Re: Table index result NOT returning expected value/cell

    I understand that the formula was the wrong way around - i'm asking why that matters?

  7. #7
    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
    43,893

    Re: Table index result NOT returning expected value/cell

    =INDEX(Range,Row number,Column number) is the input it is expecting. You were giving it the row & column numbers in the wrong order.
    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

  8. #8
    Registered User
    Join Date
    07-18-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    84

    Re: Table index result NOT returning expected value/cell

    Thank you Glenn - i've passed this on.

    Z

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,374

    Re: Table index result NOT returning expected value/cell

    Quote Originally Posted by ZMAFC94 View Post
    I understand that the formula was the wrong way around - i'm asking why that matters?
    Sorry - I thought you had missed my explanation earlier. Glenn has explained the reason - you need to provide the correct syntax for Excel to interpret your formula correctly.

    Thanks for the rep!

+ 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 & Match not returning expected result
    By patch64 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-29-2018, 09:24 AM
  2. [SOLVED] INDEX MATCH formula not returning expected result
    By lukela85 in forum Excel General
    Replies: 4
    Last Post: 12-18-2017, 11:23 AM
  3. [SOLVED] ISTEXT(SEARCH not returning expected result
    By Jutt369 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-30-2015, 05:25 AM
  4. VLookup not returning expected result
    By tenscourts in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-20-2012, 10:04 AM
  5. COUNTIF not returning expected result
    By zpenacho in forum Excel General
    Replies: 3
    Last Post: 01-20-2012, 06:37 PM
  6. SUMIF - not returning expected result
    By Paul Sheppard in forum Excel General
    Replies: 4
    Last Post: 08-16-2011, 11:43 AM
  7. Using sum(1/countif....) not returning expected result
    By Kent (thanks) in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 05-11-2006, 11:40 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