+ Reply to Thread
Results 1 to 2 of 2

"left" , "right" or "mid" a range then find

  1. #1
    Registered User
    Join Date
    09-15-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    56

    "left" , "right" or "mid" a range then find

    Is it possible to reduce the length of each value to my desired range and do a find.

    possible to right(range("A2:A9"),4).find("something") ? so that each of the values in that range that the find is looking at contains only the last 4 letters/numbers.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: "left" , "right" or "mid" a range then find

    .Find is a method of a range and .right will return a string, so in essence. No.
    If you don't have a huge range to search through one alternative is to loop and do something like:
    Please Login or Register  to view this content.
    If you have a load of cells you could use the find and findnext methods to jump through the cells with it and then test to see if it is within the last 4 cells.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  2. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  3. Replies: 5
    Last Post: 06-26-2006, 09:23 PM
  4. Replies: 7
    Last Post: 05-13-2006, 05:02 PM
  5. use variable in Workbooks("book1").Worksheets("sheet1").Range("a1"
    By Luc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-28-2005, 04:05 PM

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