+ Reply to Thread
Results 1 to 3 of 3

Search Range and return True or False

  1. #1
    Forum Contributor Grimace's Avatar
    Join Date
    05-04-2009
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2013 and Office 365 Plus
    Posts
    380

    Search Range and return True or False

    Good afternoon everyone

    In the attached sheet, I am trying to search through the range AgentIDs (Blue) to see if the value in column w (yellow) is in the list. If it is, I want to return a True in column X (Green).

    Not sure what would be the best function to use.

    Restrictions are:
    - the Agent ID field will not always be sorted in numerical order.
    - Column W will vary in length month on month
    - I have used a MID function in column W as the data extract comes with ' ' marks around it (column V), whereas the agent ID field is just typed in and remains constant. Not sure if this is effecting the outcome.

    Any assistance would be greatly appreciated.
    Attached Files Attached Files
    Last edited by Grimace; 11-11-2010 at 06:41 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Search Range and return True or False

    Hello Grimace,

    In column "W" the formula is now this:
    =IF(ISNA(VLOOKUP(VALUE(W3),AB:AB,1,FALSE)),"", W3)
    Conditional formatting has been added to column "W" also to either clear the color or make it green when a match is found in column "AB".
    Format Condition 1: Formula Is =AND(ISTEXT(X3),X3="")
    Format Condition 2: Cell Value Is not equal to 0
    The attached workbook has the changes.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor Grimace's Avatar
    Join Date
    05-04-2009
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2013 and Office 365 Plus
    Posts
    380

    Re: Search Range and return True or False

    Thanks Leith , exactly what I was after.

    Really appreciate it, Darren.

+ 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