+ Reply to Thread
Results 1 to 15 of 15

Extract Numerical part

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Extract Numerical part

    Hello:

    I have H106=BI622

    I need a formula to extract 622 of the above.

    Let me Know if you have any questions.
    Thanks.


    Riz

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

    Re: Extract Numerical part

    are those cell refs?
    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
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Extract Numerical part

    Hi FDibbins:

    Yes they are cell reference.
    Thanks
    Riz

  4. #4
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Extract Numerical part

    =RIGHT(A1,3) if that was in cell A1, but as Ford suggested, those look like cell references. Are you saying that in cell H106 you have the formula "=BI622"? If the above, ie. H106=BI622, is the data in a single cell then what is the syntax of the data? Are the last 3 characters always numbers? If not is there always 2 letters after the =? We need more detail than you have provided.

  5. #5
    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,926

    Re: Extract Numerical part

    so in cell H106 you have a reference to BI622?

    Off hand, I cannot think of any function that will pull the row number from a formula like that.

    Perhaps if you explained what you are trying to do?

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Extract Numerical part

    Assuming that the string is in A1, try this array formula which requires confirmation with Ctrl+Shift+Enter
    Please Login or Register  to view this content.
    Does this help?
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Extract Numerical part

    Try this one

    =REPLACE(A1,1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")-1),"")

    A
    B
    1
    BI622 622
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  8. #8
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Extract Numerical part

    Hi Alkey:

    It gives the same result.....BI622

    Riz

  9. #9
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Extract Numerical part

    Hi,

    Can you please confirm what the actual cell contents are?

    Is it:

    B1622

    or actually a formula:

    =B1622

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  10. #10
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Extract Numerical part

    Quote Originally Posted by rizmomin View Post
    Hi Alkey:

    It gives the same result.....BI622

    Riz
    If your cell has BI622 the formula will return 622 unless you using wrong cell references.

    Please see attached file
    Attached Files Attached Files

  11. #11
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Extract Numerical part

    Did you try the formula suggested in post#6? If A1 is H106=BI622, the formula will return 622 as per your requirement. Is this not you are looking for?

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Extract Numerical part

    If cell A1 contains this string:

    BI622

    Then this formula will return the row number:

    =ROW(INDIRECT(A1))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  13. #13
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Extract Numerical part

    Or, if A1 contains the string:

    H106=BI622

    This formula will return the row number of the right cell address:

    =ROW(INDIRECT(MID(A1,FIND("=",A1)+1,20)))

  14. #14
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Extract Numerical part

    Hello Tony:

    Your solution #12 works great.
    That's what I wanted, thxs..
    Riz

  15. #15
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Extract Numerical part

    You're welcome. 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. [SOLVED] Extract Numerical part with VB Code
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-28-2014, 05:04 PM
  2. [SOLVED] Formula needed to extract numbers from alpha numerical entry please
    By Twaddy006 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 01-14-2014, 05:26 PM
  3. [SOLVED] Extract a numerical value after a text.
    By Ken64 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-24-2013, 02:30 PM
  4. [SOLVED] Extract Part of String
    By [email protected] in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  5. Extract one numerical value from single cell with multiple values?
    By cszy67 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-26-2005, 09:49 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