+ Reply to Thread
Results 1 to 6 of 6

Searching a range

  1. #1
    Forum Contributor
    Join Date
    07-01-2005
    Posts
    103

    Searching a range

    I'm trying to lookup one value in a list. For instance, if value "A" appears in column B then this else that. Problem is, I don't know how to define the range, or the code to search a range. Really just vlookup VBA style. Any help? Thanks
    Paul

  2. #2
    Registered User
    Join Date
    01-23-2007
    Posts
    20
    cancel that, doesnt work. sorry
    Last edited by chris2485; 11-30-2007 at 10:38 AM.

  3. #3
    Registered User
    Join Date
    01-23-2007
    Posts
    20
    This seems to do the trick. Thers probably a better way though

    Please Login or Register  to view this content.
    Chris

  4. #4
    Forum Contributor
    Join Date
    07-01-2005
    Posts
    103
    It does, but I need to write it into a macro, not as a function.

  5. #5
    Forum Contributor
    Join Date
    07-01-2005
    Posts
    103
    Anyone else help with the code necessary to make this work?
    Thanks
    Paul

  6. #6
    Forum Guru mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,206
    Please Login or Register  to view this content.
    Here's a different approach
    Please Login or Register  to view this content.
    Note that the Match method is never case sensitive, but the .Find method can be made case sensitive.

+ 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