+ Reply to Thread
Results 1 to 11 of 11

two-way table lookups - can't get the function to work....

  1. #1
    Forum Contributor
    Join Date
    05-14-2015
    Location
    West Yorkshire
    MS-Off Ver
    10
    Posts
    130

    two-way table lookups - can't get the function to work....

    Hi I wonder if anybody can help with this I'm trying to get the correct price from the table from the data entered in AB2 and AB3. The function used is in cell AB7.

    Any help would be greatly appreciated.

    Book1.xlsx

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,618

    Re: two-way table lookups - can't get the function to work....

    You cant do Match on @d range - it has to be either one column or one row.
    Use for instance such array formula*
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    *...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: two-way table lookups - can't get the function to work....

    OR,

    try the following formula in AB7:

    =INDEX(A1:Z4,IF(ISNA(MATCH(AB2,B2:P2,0)),IF(ISNA(MATCH(AB2,B3:P3,0)),IF(ISNA(MATCH(AB2,B4:P4,0)),0,4),3),2),MATCH(AB3,A1:Z1,0))
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    05-14-2015
    Location
    West Yorkshire
    MS-Off Ver
    10
    Posts
    130

    Re: two-way table lookups - can't get the function to work....

    I don't think I should be this happy about Excel. Thank you chaps.....

  5. #5
    Forum Contributor
    Join Date
    05-14-2015
    Location
    West Yorkshire
    MS-Off Ver
    10
    Posts
    130

    Re: two-way table lookups - can't get the function to work....

    I've added to the table, expanded on the function and broken it. If somebody could help point out where I've gone wrong I would appreciate it.

    Book1.xlsx

  6. #6
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: two-way table lookups - can't get the function to work....

    Hi,

    I have updated the formula in the attached file.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    05-14-2015
    Location
    West Yorkshire
    MS-Off Ver
    10
    Posts
    130

    Re: two-way table lookups - can't get the function to work....

    Thank you again. What's the reason for this part at the end of the function? )),0,10),9),8),7),6),5),4),3),2),

  8. #8
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: two-way table lookups - can't get the function to work....

    That decides the matching row!

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: two-way table lookups - can't get the function to work....

    Enter this formula in B17 as an ARRAY formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: two-way table lookups - can't get the function to work....

    Kaper's formula works fine if you change the references to match your new file.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,618

    Re: two-way table lookups - can't get the function to work....

    And just a reminder: don't forget it is array formula - committed with CTRL+SHIFT+ENTER

+ 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. Help: Need a Search Function that will work with Table (ListObject)
    By onmyway in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2015, 08:40 AM
  2. Help: Need a Search Function that will work with Table (ListObject)
    By onmyway in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-26-2015, 05:49 AM
  3. It is possible to name a pivot table for use in lookups
    By qaliq in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-18-2013, 10:22 AM
  4. VBA and Table Lookups - HELP !
    By Luciferlicks in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2011, 03:06 AM
  5. Table lookups for interpolation
    By jrquebe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-08-2007, 12:08 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