+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Somewhat complex lookup function

  1. #1
    Registered User
    Join Date
    05-17-2011
    Location
    Omaha, Nebraska, United States
    MS-Off Ver
    Excel 2007
    Posts
    5

    Somewhat complex lookup function

    Hello all,

    I am having trouble implementing a complex (at least by my standards...) lookup function. I want a cell, let's say it's C3, to check the text in B3 against a list of names and return true if it's on there and false if it isn't.

    I can't use VLOOKUP because I need the contents of the A column to be first.

    Any help would be much appreciated!

  2. #2
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: Somewhat complex lookup function

    Hi

    Post an example of what you mean by " I want the A column to be first"
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Somewhat complex lookup function

    See if this example helps...
    Here's the list
    H1: Alpha
    H2: Bravo
    H3: Charlie

    and
    B3: may or may not contain an item from that list...e.g. Charlie

    This regular formula returns 1 if B3 contains a list item, otherwise zero
    C3: =COUNTIF(H1:H3,B3)

    In the above example the formula returns: 1..."Charlie" is on the list

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    05-17-2011
    Location
    Omaha, Nebraska, United States
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Somewhat complex lookup function

    Thanks for the idea, Ron! I figured it out using a combination of a new sheet, COUNTIF, and VLOOKUP.

+ 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