+ Reply to Thread
Results 1 to 1 of 1

Vba macro to extract (numbers & strings) from cell -Regex

  1. #1
    Registered User
    Join Date
    11-10-2014
    Location
    UAE
    MS-Off Ver
    MS Office Professional 2013
    Posts
    1

    Smile Vba macro to extract (numbers & strings) from cell -Regex

    hellos all
    I would appreciate your help on the following issue:
    I have a html source extract where each line is separated by <li>...</br> tags, this extract is copied into cell (E.g) A1 . Data between the tags is a combination of both numbers & text . Examples of how the data looks like:
    E.g 1 :<li> 3.3=weight(Content:test in 333), breakdownof:</br>
    E.g.2 :<li>7=freq(doc=2, factor=3.3)</br>.
    E.g.3 : <li> 4.5=fieldfact</br>

    What i am trying do is :
    1- divide the entire extract into lines based the <li>..</br> add to a matirx perhaps?
    2- for each line (for each <li>..</br>) extract numbers & strings to be able to do further analysis.
    so far e.g for Eg1&Eg 2 i would want to see :

    weight Content in freq doc factor fieldfact
    3.3 test 333 7 2 3.3 4.5

    i hope my explanation was clear , i am trying to use the "Microsoft VBScript Regular Expressions 5.5" , i would really appreciate your help on this issue since i am fairly new with VBA !!

    Many thanks
    Zeek
    Last edited by zeekad; 11-11-2014 at 04:46 AM. Reason: data not previewed properly

+ 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. Extract specific strings within a cell macro
    By ardniw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2013, 03:41 AM
  2. [SOLVED] Extract Numbers from Cells containing alphanumeric strings; and sum all figures
    By elliotencore in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-01-2013, 02:52 PM
  3. extract numbers out of strings.
    By mikeburg in forum Excel General
    Replies: 3
    Last Post: 08-06-2008, 04:52 PM
  4. [SOLVED] how to extract decimal numbers from alphanumeric strings in Excel
    By Old Tone in forum Excel General
    Replies: 13
    Last Post: 03-23-2006, 11:55 AM
  5. [SOLVED] Extract numbers from strings
    By Stan Altshuller in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-18-2005, 10:06 AM

Tags for this Thread

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