+ Reply to Thread
Results 1 to 6 of 6

Trim numbers seperated by commas in a bracket

  1. #1
    Registered User
    Join Date
    07-11-2019
    Location
    Wellingborough
    MS-Off Ver
    2013
    Posts
    3

    Trim numbers seperated by commas in a bracket

    Hi

    Could someone give me help with the following:

    I'm trying to trim each specific number in this list:

    {1998.054,1998.358,1998.669,1998.989,1999.318,1999.655,2000,2000.354,2000.716,2001.087}

    i.e. one cell i want to have just 1998.054

    And the next cell have 1998.358

    Thanks for your help

  2. #2
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Trim numbers seperated by commas in a bracket

    Use TEXT TO COLUMNS under the DATA ribbon, choose delimited and then check the box for comma
    Please do add reputation where you see fit, it's nice to be nice and we all enjoy a pat on the back

    Please also mark your thread as solved once it has been.

  3. #3
    Registered User
    Join Date
    07-11-2019
    Location
    Wellingborough
    MS-Off Ver
    2013
    Posts
    3

    Re: Trim numbers seperated by commas in a bracket

    Attachment 631772

    I have tried the text to columns function, however, Im un-able to remove both the brackets. I can only remove one {.

    Can I use an equation to trim each specific number out?
    Last edited by chasabooma; 07-11-2019 at 06:03 AM.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: Trim numbers seperated by commas in a bracket

    You could use Find & Replace (twice) to change those brackets to nothing.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    07-11-2019
    Location
    Wellingborough
    MS-Off Ver
    2013
    Posts
    3

    Re: Trim numbers seperated by commas in a bracket

    Well this is the equation I have at the moment:

    LEFT(TRIM(LEFT(SUBSTITUTE(MID(B4,FIND("{",SUBSTITUTE(B4,",","|",2))+1,LEN(B4)),",",REPT(" ",LEN(B4))),LEN(B4))),LEN(B4)-FIND(",",SUBSTITUTE(B4,",","a",1))-1)

    But I cant get it to find the next number in the string. i.e. betwene the next set of commas.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Trim numbers seperated by commas in a bracket

    Using Power Query, you could split the column using the following Mcode. File attached for your review

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] VBA to format numbers with commas
    By punter in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-28-2014, 06:05 PM
  2. Replies: 2
    Last Post: 07-18-2014, 03:00 AM
  3. Replies: 5
    Last Post: 01-17-2014, 05:56 PM
  4. [SOLVED] 2 separate columns with numbers separated by commas and single numbers not, need sum
    By Slothbob in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-22-2013, 04:33 PM
  5. Find UPC code from material numbers and populate 3 bracket prices
    By dynamoracing in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-07-2013, 08:38 PM
  6. Excel 2007 : bracket on negative numbers in workbooks
    By Ben Lester in forum Excel General
    Replies: 1
    Last Post: 08-10-2011, 10:22 AM
  7. Remove String Within the Bracket and also the Bracket
    By seanyeap in forum Excel General
    Replies: 6
    Last Post: 04-23-2010, 10:24 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