+ Reply to Thread
Results 1 to 6 of 6

Break String and find numeric value

  1. #1
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Break String and find numeric value

    Hi all,

    hope you are good, i am usinf a formula =SUBSTITUTE(UPPER(A1),"PCS","")+0 to find out numeric value but this is not working, kindly help to find this.

    file is attached

    Thanks.
    Attached Files Attached Files

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,426

    Re: Break String and find numeric value

    There is a hidden line break. Try this:

    =--SUBSTITUTE(SUBSTITUTE(UPPER(A1),"PCS",""),CHAR(10),"")

    You don't really need the UPPER function at all - Excel will look at the string case-insensitively:

    =--SUBSTITUTE(SUBSTITUTE(A1,"PCS",""),CHAR(10),"")
    Last edited by AliGW; 09-18-2019 at 01:49 AM.
    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-30-2003
    Location
    Singapore
    MS-Off Ver
    Excel 2019
    Posts
    197

    Re: Break String and find numeric value

    Maybe,

    =0+REPLACE(A1,FIND(CHAR(10),A1),4,"")

    or,

    =0+SUBSTITUTE(A1,CHAR(10)&"Pcs","")

    or,

    =0+LEFT(A1,FIND(CHAR(10),A1)-1)

    or,

    =0+LEFT(A1,LEN(A1)-4)

    Regards
    Bosco
    Last edited by Bosco; 09-18-2019 at 03:35 AM.

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,426

    Re: Break String and find numeric value

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

  5. #5
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Break String and find numeric value

    Thanks Both, AliGW and Bosco,
    its super, like cheers,

    Thanks a lot

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,426

    Re: Break String and find numeric value

    No worries.

+ 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] Formulas to find the first and last numeric value and text string in a column
    By Rambo4711 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-12-2013, 05:20 AM
  2. [SOLVED] Help find MAX value in one column when numeric & alph-numeric values are present
    By KevinAB in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-01-2013, 11:29 AM
  3. [SOLVED] If Statement not finding Numeric Values but will find a string
    By mattyh555 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-27-2012, 03:05 PM
  4. Extracting Numeric Values from an Alpha/Numeric String
    By Delkath in forum Excel General
    Replies: 5
    Last Post: 10-27-2010, 02:36 PM
  5. Copy & Pasting in VBA + break links (See thread: Find part of string and delete)
    By thedivvy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-17-2009, 07:46 AM
  6. Numeric value from a text string/numeric identifier?
    By lampshell in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2008, 02:21 PM
  7. Find numeric value at end of string
    By Barb Reinhardt in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-04-2006, 07:35 PM
  8. [SOLVED] Find first numeric value in text string
    By Rbp9ad in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-14-2005, 09:05 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