+ Reply to Thread
Results 1 to 6 of 6

Search Range for matching value return and to active cell.

  1. #1
    Forum Contributor
    Join Date
    10-05-2012
    Location
    Washington
    MS-Off Ver
    Excel 2013
    Posts
    106

    Search Range for matching value return and to active cell.

    I am trying to search for a value in column B in column A. If the value is not found then move to the next cell in column B but if the value is found then return to same cell in column B.

    This code works half way. If the value is not found in A it will move down to the next cell in B. but if the value is found in column A it will move down to the next cell in column A. I cannot figure out why. Any help would be appreciated.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Search Range for matching value return and to active cell.

    Please Login or Register  to view this content.
    INTO
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    10-05-2012
    Location
    Washington
    MS-Off Ver
    Excel 2013
    Posts
    106

    Re: Search Range for matching value return and to active cell.

    I have used that and it will return to Column B if the value is found but will not drop down to the next cell if the value is not found.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Search Range for matching value return and to active cell.

    Because your search does not have a Find(Next) function built on it.

  5. #5
    Forum Contributor
    Join Date
    10-05-2012
    Location
    Washington
    MS-Off Ver
    Excel 2013
    Posts
    106

    Re: Search Range for matching value return and to active cell.

    That doesnt quite accomplish what i want. It is like whatever i have as my else statement doesnt function.

  6. #6
    Forum Contributor
    Join Date
    10-05-2012
    Location
    Washington
    MS-Off Ver
    Excel 2013
    Posts
    106

    Re: Search Range for matching value return and to active cell.

    If anybody is still reading this thread I have figured out what the problem was.

    Basically all i did was remove "test1" and simply replaced it will selection. granted this code is pointless but it was move of a proof of concept. my untimate goal was to have the found values deleted. here is my final code.

    Please Login or Register  to view this content.
    I am going to add a loop so it keeps running until the "selection" in column B is empty but it is lunch time and I am hungry.

+ 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