+ Reply to Thread
Results 1 to 9 of 9

how to extract numbers in the cell?

  1. #1
    Registered User
    Join Date
    02-15-2016
    Location
    hongkong
    MS-Off Ver
    hongkong
    Posts
    15

    how to extract numbers in the cell?

    hello,

    1) a cell have 4 number, for example, "0121", I need to extract "01"in one cell, "21" in another cell. same case as "1234", extract"12" in one cell and "34" in other cell.
    2) a cell have two digit, "34", i need to get the result: sum of "3+4" in another cell. "77" get the result: sum of "7+7"

    thanks a lot^^

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: how to extract numbers in the cell?

    With A1="0121", B1=LEFT(A1,2); C1=RIGHT(A1,2)
    With A2=34, B2=LEFT(A2)+RIGHT(A2)
    Quang PT

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: how to extract numbers in the cell?

    if A1 is the cell then formula in B1 is
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    formula in C1 is
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    no idea how you intend to deal with things not 2 or 4 in length so i put extra IF statement in
    Last edited by humdingaling; 02-15-2016 at 10:30 PM. Reason: re:read question..formula updated
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    02-15-2016
    Location
    hongkong
    MS-Off Ver
    hongkong
    Posts
    15

    Re: how to extract numbers in the cell?

    thanks expert!
    how is the fourmula the (1) do it reverse?
    E.G. cellA1 "01" , cellA2 "21" to get "0121"in cell A3 ?

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: how to extract numbers in the cell?

    Quote Originally Posted by tinyau View Post
    thanks expert!
    how is the fourmula the (1) do it reverse?
    E.G. cellA1 "01" , cellA2 "21" to get "0121"in cell A3 ?
    =COMBINATION(A1,A2)
    Or
    =A1&A2

  6. #6
    Registered User
    Join Date
    02-15-2016
    Location
    hongkong
    MS-Off Ver
    hongkong
    Posts
    15

    Re: how to extract numbers in the cell?

    thank you very much experts !

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

    Re: how to extract numbers in the cell?

    Quote Originally Posted by bebo021999 View Post
    =COMBINATION(A1,A2)
    Or
    =A1&A2
    None of my versions of Excel (2002,2007,2010,2013) have a COMBINATION function.

    Did you mean CONCATENATE ?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: how to extract numbers in the cell?

    Quote Originally Posted by Tony Valko View Post
    None of my versions of Excel (2002,2007,2010,2013) have a COMBINATION function.

    Did you mean CONCATENATE ?
    Haha, you are right! Sorry, I mean CONCATENATE. Hope Excel 2016 has. Tkx you.

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

    Re: how to extract numbers in the cell?

    Good deal. 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 numbers from cell
    By warston in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-23-2015, 03:43 PM
  2. Extract numbers from cell
    By warston in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-23-2015, 03:34 PM
  3. Extract Numbers from a cell
    By flindy87 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2013, 11:10 AM
  4. Extract the first numbers from a cell
    By neverloggedin in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 08-04-2013, 06:57 AM
  5. Extract numbers from cell with Text and Numbers
    By wiredwrx in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-18-2006, 06:00 PM
  6. [SOLVED] How do I extract numbers from a cell with both text and numbers?
    By SHANNON in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-01-2005, 10:35 PM
  7. [SOLVED] extract numbers from cell containing text & numbers
    By [email protected] in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-14-2005, 03:10 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