+ Reply to Thread
Results 1 to 4 of 4

Excel & VBA Help - Search and Trim: VB Code or Formulae

  1. #1
    Registered User
    Join Date
    12-11-2012
    Location
    England
    MS-Off Ver
    Mac 2010
    Posts
    2

    Excel & VBA Help - Search and Trim: VB Code or Formulae

    Hey,

    I am totally new to this! First time poster! Not sure if this can be done? I thought i would ask the experts.....

    I have an excel sheet (see attached file) with extracted text from a bibliographic database. I would like to find specific words i.e. "Information Technology", for excel then to copy 10 characters before, the word itself and 10 characters into the next column.

    So for example: Senior Mangers believe information systems is critical to business success.

    I would a formulae / VB script to find the text "information systems" and find 10 characters before and 30 characters after.

    so it would read: 'era believe information systems is critical' in the next column. I have found a way to search the text string to return a true or false statement, but am struggling to do this activity.

    Does anyone have any suggestions to do this in MS excel via formulaes or does this need VB Coding.

    Please provide source code or formulaes?

    Any help is really appreciated.
    Attached Files Attached Files
    Last edited by ExcelNewbie007; 12-12-2012 at 03:37 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,570

    Re: Excel Practitioners - Please Help

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    Ben Van Johnson

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Excel Practitioners - Please Help

    ExcelNewbie, welcome to the forum.

    however, please rename your thread to something more meaningful, that actually describes your problem. lots of contributors will look at a thread title, and if it of interest to them, or falls within their area of expertise, and will only open those threads. also, searching for "help" will not turn up too many results that will benefit you, sorry
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    12-11-2012
    Location
    England
    MS-Off Ver
    Mac 2010
    Posts
    2

    Re: Excel Practitioners - Please Help

    Thanks ProtonLeah for your advice.

+ 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