+ Reply to Thread
Results 1 to 3 of 3

extract number after dash

  1. #1
    Forum Contributor
    Join Date
    12-22-2012
    Location
    Asia
    MS-Off Ver
    Microsoft 365
    Posts
    234

    extract number after dash

    Hi

    Could you pls help me with the formula to extract the number "1" after the dash from data such as:
    Yearly {Long-Term Debt} (1996) - 1
    Yearly {Interest Income} (1996) - 1

    thanks

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: extract number after dash

    Maybe this?
    If there will only ever be 1 digit...
    =right(a1,1)

    if there will be more than 1 digit...
    =MID(a1,FIND(" -",a1)+3,99)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: extract number after dash

    Happy to help and thanks for the feedback

+ 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. Replies: 4
    Last Post: 08-01-2018, 12:27 PM
  2. [SOLVED] How two extract text behind last dash"-" from multiple dash "-" containing text?
    By nabinprd1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-01-2018, 12:16 PM
  3. [SOLVED] extract text after second dash
    By L.LEE in forum Excel General
    Replies: 3
    Last Post: 06-03-2018, 03:25 AM
  4. Extract Text after hypen or dash
    By MarkO'Donnell in forum Excel General
    Replies: 1
    Last Post: 11-06-2017, 08:35 PM
  5. Negative number show a dash
    By astole in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-31-2013, 04:14 AM
  6. Replies: 11
    Last Post: 12-17-2012, 12:02 PM
  7. understanding dash dash in a excel formula
    By ldebner in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-31-2005, 10:05 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