+ Reply to Thread
Results 1 to 5 of 5

Regex to extract Data in VBA

  1. #1
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Regex to extract Data in VBA

    Hello

    I looking for regex or any other solution in excel VBA to extract data from
    Please Login or Register  to view this content.
    What I need to extract is 43.27 which is in "c":[43.24,42.78,43.27]
    Last edited by grcshekar; 10-02-2023 at 12:39 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,955

    Re: Regex to extract Data in VBA

    Please post in the VBA section for VBA solutions!

    I'm moving the thread for you.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Regex to extract Data in VBA

    Assuming the string (which seems to be a JSon) is in cell A1 on the active sheet, try this;

    Please Login or Register  to view this content.
    Attached Images Attached Images
    Last edited by Haluk; 10-02-2023 at 05:15 AM.

  4. #4
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Re: Regex to extract Data in VBA

    Quote Originally Posted by Haluk View Post
    Assuming the string (which seems to be a JSon) is in cell A1 on the active sheet, try this;

    Please Login or Register  to view this content.
    Thank you, it worked

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,212

    Re: Regex to extract Data in VBA

    Please Login or Register  to view this content.

    =extract_me(A1,"c",2)
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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] Possible to use regex to extract names from a mailing list?
    By acechapo95 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-25-2022, 06:50 AM
  2. [SOLVED] Use VBA RegEx to extract telephone numbers
    By BNCOXUK in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-09-2022, 07:45 AM
  3. [SOLVED] Extract matches of all the groups within regex pattern
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2021, 10:35 AM
  4. [SOLVED] Extract specific group in regex pattern
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2020, 01:57 PM
  5. Regex to extract number with decimal after keyword
    By foxtrotter in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-07-2019, 02:26 PM
  6. help with regex function for extract numbers out
    By Pancho3 in forum Excel General
    Replies: 4
    Last Post: 09-21-2018, 02:56 PM
  7. [SOLVED] RegEx pattern to extract multiplelines title in TXT file
    By p24leclerc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-06-2014, 08:39 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