+ Reply to Thread
Results 1 to 8 of 8

Three way lookup

  1. #1
    Forum Contributor
    Join Date
    01-09-2013
    Location
    Saudi arabia
    MS-Off Ver
    Excel 2019
    Posts
    101

    Three way lookup

    attach file
    I want values in sheet 2 column type as A-1 .........E1 etc.
    Please help
    Attached Files Attached Files

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

    Re: Three way lookup

    Soory, I don't understand what the result you want is. can you explain a bit more clearly...

  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: Three way lookup

    Hi,

    If you are comparing the 'Pipe Diameter' in two tabs, you have multiple 'Type' fields for each Diameter (Sheet1). Please provide some logic in filling up the 'Type' field in Sheet2.

  4. #4
    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
    80,907

    Re: Three way lookup

    Quote Originally Posted by cbatrody View Post
    Hi,

    If you are comparing the 'Pipe Diameter' in two tabs, you have multiple 'Type' fields for each Diameter (Sheet1). Please provide some logic in filling up the 'Type' field in Sheet2.
    If the pipe diameter falls between the two given on sheet 1, then that's the diameter needed on sheet 2, surely?
    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.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Three way lookup

    in sheet2!b6 filled down
    =INDEX(INDEX(Sheet1!A:A,MATCH(A6,Sheet1!B:B,0)):INDEX(Sheet1!A:A,MATCH(A6,Sheet1!B:B,0)+3),MATCH(B6,INDEX(Sheet1!C:C,MATCH(A6,Sheet1!B:B,0)):INDEX(Sheet1!C:C,MATCH(A6,Sheet1!B:B,0)+3),1))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Three way lookup

    OOPS just noticed A has more ranges than the rest then last formula wont work
    try
    =LOOKUP(A6,{300,400,500,600,700,800,900,1000},{"A","B","C","D","E","F","G","H"})&"-"&IF(A6=300,MATCH(B6,{0,1.5,2.5,3,4},1),MATCH(B6,{1.5,2.5,3,4},1))
    Last edited by martindwilson; 05-04-2014 at 05:27 AM.

  7. #7
    Forum Contributor
    Join Date
    01-09-2013
    Location
    Saudi arabia
    MS-Off Ver
    Excel 2019
    Posts
    101

    Re: Three way lookup

    Thank you very much

  8. #8
    Forum Contributor
    Join Date
    01-09-2013
    Location
    Saudi arabia
    MS-Off Ver
    Excel 2019
    Posts
    101

    Re: Three way lookup

    Great reply thanks

  9. #9
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Three way lookup

    Another variation...

    On sheet2, in B6, try this array formula which requires confirmation with Ctrl+Shift+Ente instead of just Enter. (i.e. hold down the Ctrl+Shift and then press Enter.)
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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. Replies: 3
    Last Post: 04-08-2014, 03:11 AM
  2. Replies: 2
    Last Post: 05-19-2013, 08:46 AM
  3. Replies: 1
    Last Post: 11-07-2012, 01:57 PM
  4. Search lookup array to find lookup value contained within text string
    By Cookstein2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-02-2011, 09:42 AM
  5. Replies: 7
    Last Post: 06-19-2011, 12:51 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