+ Reply to Thread
Results 1 to 4 of 4

how to trim the number next in dash sign

Hybrid View

  1. #1
    Registered User
    Join Date
    08-10-2017
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    44

    how to trim the number next in dash sign

    hi please help. i need a formula to get the number next in - sign. below are the example.

    1. 31-60 result should be 60
    2. 121-150 result should be 150

    thanks

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: how to trim the number next in dash sign

    Try this?

    Assuming the cells are in A1.
    Formula: copy to clipboard
    =VALUE(TRIM(RIGHT(A1, LEN(A1) - FIND("-",A1))))

  3. #3
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    514

    Re: how to trim the number next in dash sign

    Try this:

    =--REPLACE(A1,1,FIND("-",A1),"")

  4. #4
    Registered User
    Join Date
    08-10-2017
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    44

    Re: how to trim the number next in dash sign

    Thank you so much

+ 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] Replace slash sign to dash sign
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-28-2017, 08:17 AM
  2. [SOLVED] How to Search on 3 Dash Sign?
    By putritersenyum in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-14-2016, 10:36 AM
  3. [SOLVED] Insert dash sign where not
    By makinmomb in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-18-2015, 06:07 AM
  4. [SOLVED] Help require to have a dash sign in the table
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-15-2015, 01:03 AM
  5. Trim after fourth dash
    By ryancx in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-17-2013, 04:08 PM
  6. [SOLVED] Ignore dash sign while concatenate
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-07-2013, 07:05 AM
  7. Enter DASH after TRIM
    By stafford in forum Excel General
    Replies: 4
    Last Post: 06-12-2009, 03:40 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