Closed Thread
Results 1 to 15 of 15

Split Text to Numbers

  1. #1
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    Split Text to Numbers

    Hi everybody,

    I have on column "A" below texts:

    1,256+45
    356,5000-12
    436,000+21

    There is not any space between first number, plus/minus sign and second number. I am willing to split this text to the numbers in each cell.

    Please see attached excel file.

    Is there any formula for above problem?

    Thanks in advance for your help.
    Attached Files Attached Files
    Last edited by soleimani1967; 05-23-2020 at 06:03 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,460

    Re: Split Text to Numbers

    In B2 copied down:

    =VALUE(LEFT(A2,IFERROR(FIND("+",A2),FIND("-",A2))-1))

    In C2 copied down:

    =VALUE(SUBSTITUTE(A2,B2,""))
    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
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    Re: Split Text to Numbers

    Thank you AliGW. Your formula as well as works.

  4. #4
    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,460

    Re: Split Text to Numbers

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    Re: Split Text to Numbers

    Hi AliGW,

    Do you have any idea for changing format of left number from General to Accounting just like below texts?

    1,256+45
    3,565,000-12
    4,363,457+21
    253,637+34

    In this format, the second formula does not work.

  6. #6
    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,460

    Re: Split Text to Numbers

    It works just by changing the formatting of that column:

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    1
    TEXT
    Left Number
    Right Number
    2
    1436700+24
    £ 1,436,700.00
    24
    3
    76538-35
    £ 76,538.00
    -35
    4
    987120+87
    £ 987,120.00
    87
    5
    26762900-21
    £ 26,762,900.00
    -21
    Sheet: Sheet1
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    Re: Split Text to Numbers

    I mean that something like attached spreadsheet.
    Attached Files Attached Files

  8. #8
    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,460

    Re: Split Text to Numbers

    Use this in C2 copied down:

    =VALUE(SUBSTITUTE(SUBSTITUTE(A2,",",""),B2,""))

  9. #9
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    Re: Split Text to Numbers

    Many thanks. It works now.

  10. #10
    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,460

    Re: Split Text to Numbers

    It worked before on the data provided originally! Next time, provide ACCURATE sample data at the outset instead of shifting the goalposts.

  11. #11
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    Re: Split Text to Numbers

    Yes. you are true. I took a mistake to post original sample data. I am so sorry.

  12. #12
    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,460

    Re: Split Text to Numbers

    No worries - just bear it in mind in future.

  13. #13
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    Re: Split Text to Numbers

    Hi AliGW,

    Is it possible we also spilit the basic operations just like attached excel file?
    Attached Files Attached Files

  14. #14
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,410

    Re: Split Text to Numbers

    Please try in B7 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and in D7 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

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

    Re: Split Text to Numbers

    @soleimani1967

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    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

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Split numbers from text
    By Staffan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-08-2015, 09:49 AM
  2. [SOLVED] Split cell containing numbers and text
    By MATU70 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 03-23-2014, 04:12 AM
  3. [SOLVED] Split Text & Numbers into three columns
    By SamCV in forum Excel General
    Replies: 5
    Last Post: 02-26-2014, 07:04 PM
  4. [SOLVED] Delete text, split numbers to two cells and store as numbers
    By Steve_123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-10-2014, 09:51 AM
  5. Split Text using numbers as Delimiter.
    By ksalsaadi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-26-2012, 12:42 AM
  6. Split text and numbers into different cells
    By frutz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-15-2009, 09:20 PM
  7. split numbers from text in cell
    By nicko54 in forum Excel General
    Replies: 4
    Last Post: 03-26-2009, 07:24 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