+ Reply to Thread
Results 1 to 11 of 11

2 way lookup with rule.

  1. #1
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    2 way lookup with rule.

    I am trying to make a formula for looking up wall colors on a number of different houses. The rule is to Lookup certain colors (Green,Blue, Yellow) from a table and have them display in a different table and when a color is not specified have it show nothing. The two way lookup is to lookup the wall type and the house number.

    This is my attempt at the code,obviously very wrong, so any help would be appreciated.


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JapanDave; 04-16-2011 at 07:28 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    868

    Re: 2 way lookup with rule.

    Try this one.

    Please Login or Register  to view this content.
    Harry.

  3. #3
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: 2 way lookup with rule.

    Hi Harry,

    That code is giving me an error. could you possibly post it in an excel file? Non English excel does funny stuff to code.

    Edit, I got your code to work, but it does not have the rule in it. I need it to only display the colors I specify.

    Thanks.
    Last edited by JapanDave; 04-16-2011 at 06:28 AM.

  4. #4
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    868

    Re: 2 way lookup with rule.

    Hi Dave,

    I edit #2 for translate, but it went wrong (sorry).
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: 2 way lookup with rule.

    Here you go
    Attached Files Attached Files

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: 2 way lookup with rule.

    Sorry HSV - your green light wasn't on so I thought you were away.

  7. #7
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    868

    Re: 2 way lookup with rule.

    Quote Originally Posted by Cutter View Post
    Sorry HSV - your green light wasn't on so I thought you were away.
    It’s okay Cutter, maybe I must change that, but I will go now for playing tennis.
    success.

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: 2 way lookup with rule.

    Sorry Dave - try this
    Attached Files Attached Files

  9. #9
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: 2 way lookup with rule.

    Thanks HSV.

    Cutter, that last one did the trick. Slowly but surely I am starting to understand this lookup stuff. Your formula actually makes sense to me for the first time. (I have asked for other lookup formulas in the past and did not have a clue what that meant) I think some of this is actually sinking in.

    Again thanks for the help. You and HSV now have rep points.

    Cheers

    Dave

  10. #10
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: 2 way lookup with rule.

    You're welcome Dave.

    Thanks for the feedback and the "scales tap".

  11. #11
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: 2 way lookup with rule.

    You are very , very welcome!

+ 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