+ Reply to Thread
Results 1 to 8 of 8

Searching Column for Part of a Term

  1. #1
    Registered User
    Join Date
    06-01-2011
    Location
    Dayton, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    20

    Searching Column for Part of a Term

    I am trying to search Column B for 0X and return all results in another sheet called reports. The problem is the term is a 10 or 11 characters long for example 1MT000000X but the only ones I need end with 0X and there are to many variables in the other 9 characters. In Psuedocode

    If Column B Contains 0X then Copy Row to Sheet Reports

  2. #2
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Re: Searching Column for Part of a Term

    Can you post a workbook with your data layout.

    :-)
    Thank You, Mike

    Some Helpful Hints:

    1. New members please read & follow the Forum Rules
    2. Use Code Tags...Place[code]Before the first line and[/code] After the last line.
    3. If you are pleased with a solution mark your post SOLVED.
    4. Thank those who have help you by clicking the scales at the top right of the post.

    Here...

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Searching Column for Part of a Term

    Please Login or Register  to view this content.
    Last edited by snb; 06-22-2011 at 03:16 AM.



  4. #4
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Searching Column for Part of a Term

    Hello Erenagh,

    See the attached. On cell F1 just enter the last 1, 2, 3, ...11 characters to get the data. Hope this helps
    Attached Files Attached Files
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  5. #5
    Registered User
    Join Date
    06-01-2011
    Location
    Dayton, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Searching Column for Part of a Term

    Sorry all I am trying to get all this data to pull from my "Master" worksheet that then get pasting into my worksheet called "reports" so im trying to avoid formulas if I can and autofilter. It worked great though. Thank you for your responses so far!

  6. #6
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Re: Searching Column for Part of a Term

    Here is another method? No Auto Filter and No Formula's

    Please Login or Register  to view this content.

  7. #7
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Searching Column for Part of a Term

    so im trying to avoid formulas if I can and autofilter
    Why not avoiding Excel at all ?

  8. #8
    Registered User
    Join Date
    06-01-2011
    Location
    Dayton, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Searching Column for Part of a Term

    The reason I am trying to avoid both of those is because using a formula in my sheet is impratical because it is changed all the time and there are already 57 columns.

    Im trying to avoid autofilter because I have to use autofilter in the master spread sheet or copy the entire contents and then autofilter into my reports page. Both of which seem to lag greatly when the master worksheet is shared with the team.

    I know I don't know much about VBA but I am learning as I go hence the questions. Also, I am trying to develop products that don't just work functionally but also expeditiously when running my reports. Strangely enough when a excel document is shared it increases the time to run a report almost ten fold. From what I read though this is due to a comparison made to each accompanied cell to verify changes... anywho, that is why I dont wish to avoid excel just certain factors of it.

+ 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