+ Reply to Thread
Results 1 to 15 of 15

Extract Number from right side of a cell value, ignore number on left side

  1. #1
    Registered User
    Join Date
    07-19-2016
    Location
    Baton Rouge, Louisiana
    MS-Off Ver
    2016
    Posts
    41

    Extract Number from right side of a cell value, ignore number on left side

    All,

    I am using a concatenate formula to combine the name of a test with a numeric counter to create an individualized data point to use in more easily recalling previous values. Because the data will not be entered in a consistent order, I need to be able to extract the number from the individual data point, subtract one and re-add the test name into that value to recall the value from that data point. Example: Jump4 > extract "4" > subtract 1 "3" > Re-add "Jump" to create Jump3 > Recall Jump3 value. That information is only to understand what I am trying to do, my issue is with the extraction formula only currently.

    I have a formula that works how I need it to, but am running into a problem because one of the tests has numbers at the front of it. Can anyone find a workaround?
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  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,938

    Re: Extract Number from right side of a cell value, ignore number on left side

    Can you provide a few more realistic samples and answers please?
    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
    Registered User
    Join Date
    07-19-2016
    Location
    Baton Rouge, Louisiana
    MS-Off Ver
    2016
    Posts
    41

    Re: Extract Number from right side of a cell value, ignore number on left side

    Here is how the data is organized with an example of what will eventually be calculated in the third column
    Attached Files Attached Files

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

    Re: Extract Number from right side of a cell value, ignore number on left side

    What is the highest that last number might go to?

  5. #5
    Registered User
    Join Date
    07-19-2016
    Location
    Baton Rouge, Louisiana
    MS-Off Ver
    2016
    Posts
    41

    Re: Extract Number from right side of a cell value, ignore number on left side

    Quote Originally Posted by FDibbins View Post
    What is the highest that last number might go to?
    I would surmise 20 at the most

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

    Re: Extract Number from right side of a cell value, ignore number on left side

    So only 2 digits?

  7. #7
    Registered User
    Join Date
    07-19-2016
    Location
    Baton Rouge, Louisiana
    MS-Off Ver
    2016
    Posts
    41

    Re: Extract Number from right side of a cell value, ignore number on left side

    Correct, yes

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

    Re: Extract Number from right side of a cell value, ignore number on left side

    Apologies for the delay, RL interrupted

    Try this, copied down

  9. #9
    Registered User
    Join Date
    07-19-2016
    Location
    Baton Rouge, Louisiana
    MS-Off Ver
    2016
    Posts
    41

    Re: Extract Number from right side of a cell value, ignore number on left side

    Quote Originally Posted by FDibbins View Post
    Apologies for the delay, RL interrupted

    Try this, copied down
    I don't think the formula carried over to your post

  10. #10
    Registered User
    Join Date
    07-19-2016
    Location
    Baton Rouge, Louisiana
    MS-Off Ver
    2016
    Posts
    41

    Re: Extract Number from right side of a cell value, ignore number on left side

    Quote Originally Posted by FDibbins View Post
    Apologies for the delay, RL interrupted

    Try this, copied down
    I wanted to follow up to see if you still had the formula worked out for this question?

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Extract Number from right side of a cell value, ignore number on left side

    Since the question only concerns extracting the number at the end of the text string I propose the following:
    1) add a space in the concatenate formula so that instead of Jump1 it produces Jump 1
    2) Use the following formula to extract the number:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  12. #12
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: Extract Number from right side of a cell value, ignore number on left side

    Try:
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    07-19-2016
    Location
    Baton Rouge, Louisiana
    MS-Off Ver
    2016
    Posts
    41

    Re: Extract Number from right side of a cell value, ignore number on left side

    Quote Originally Posted by JeteMc View Post
    Since the question only concerns extracting the number at the end of the text string I propose the following:
    1) add a space in the concatenate formula so that instead of Jump1 it produces Jump 1
    2) Use the following formula to extract the number:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Worked perfectly, thank you.

  14. #14
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Extract Number from right side of a cell value, ignore number on left side

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

  15. #15
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: Extract Number from right side of a cell value, ignore number on left side

    Hi,

    Since you say it won't be more than 2 digits, without changing your current concatenate setup:

    If you Only want to extract the Number at the far right:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Or, if you want to return the Entire string but substract 1 from the Number at the far right as you described in Post # 1:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Split a list,any number of lines, then past it side by side
    By Darker0ne in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-28-2015, 03:10 PM
  2. [SOLVED] Data shift from right side to left side
    By nur2544 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-03-2014, 11:37 AM
  3. [SOLVED] How can I change Chart.Axes(xlValue) from left side to right side ?
    By HerryMarkowitz in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 09-15-2014, 02:18 PM
  4. [SOLVED] Why Minus (-) Symbol Coming Right Side Instead of Left Side ???
    By jd16 in forum Excel General
    Replies: 9
    Last Post: 10-20-2013, 12:16 AM
  5. [SOLVED] How to shift numeric number from left side to right side of a particular word
    By nur2544 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-13-2013, 09:05 AM
  6. [SOLVED] How to move data from right side to left side, please check the attachment
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-08-2013, 03:43 AM
  7. [SOLVED] adding 0's to the left side of a constant number cell
    By faisal alfadl in forum Excel General
    Replies: 1
    Last Post: 11-25-2005, 01:10 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