+ Reply to Thread
Results 1 to 3 of 3

Finding specific string in cell

  1. #1
    Registered User
    Join Date
    05-19-2015
    Location
    sweden
    MS-Off Ver
    2013
    Posts
    1

    Finding specific string in cell

    Hi,

    I've recieved a bunch .txt files that very hard to retrieve information from. No delimiters to use at all, all information is in one cell. I've tried with notepad++ without success. The files are approx. 10 000 rows so there's noway I could handle this manually. In each of the rows there's a five digit number I want to retrive and store away. The number can be anywhere from 10000 to 99999. And is always surronded by two blanks on either side. Is there anyway for me to get this done through VBA?

    This topic may have been mentioned elsewhere on this forum, but I can't find it since I don't really know what to search after.

    Thanks in advance
    Peter

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,906

    Re: Finding specific string in cell

    Hi, welcome to the forum.

    The quickest way to do this good old MS-DOS.Open command promt and type the following command: find /?

    Please Login or Register  to view this content.
    If you look at the syntax I'm sure you'll be able to work something out.
    If you neext to export it then there are other ways but just looking for a particular text in any number ot txt, csv or other ascii file, this could be of use.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Finding specific string in cell

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

+ 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. Replies: 24
    Last Post: 11-10-2015, 07:27 PM
  2. [SOLVED] Script to Search for a specific String then return cell values above that String-3
    By owensjb2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2015, 01:50 PM
  3. [SOLVED] Finding a specific text string throughout an entire column and if there return true/false
    By myfivemonkeys in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-06-2015, 07:31 PM
  4. Formula Finding String with Specific Letters and Numbers
    By jpedges38 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-06-2012, 08:56 PM
  5. Finding a specific integer in a string
    By bugmenot in forum Excel General
    Replies: 9
    Last Post: 08-03-2009, 01:58 PM
  6. [SOLVED] Finding specific text in string - Part II
    By Hardip in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-08-2006, 09:25 AM
  7. [SOLVED] Finding specific text in a string
    By Hardip in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-08-2006, 08:20 AM

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