+ Reply to Thread
Results 1 to 4 of 4

Need to extract numbers from a cell and convert to number values. Please help.

Hybrid View

  1. #1
    Registered User
    Join Date
    09-18-2014
    Location
    Auckland
    MS-Off Ver
    2014
    Posts
    2

    Need to extract numbers from a cell and convert to number values. Please help.

    Hi all,

    I had talked to my brother who knows a bit about programming but not enough about Excel.

    I think it would be easy to start with an example to show what i'd like to do.

    A B C
    1 12.00 NZD 12.00 NZD
    2 15.00 NZD 15.00 NZD
    3 5.00 NZD 5.00 NZD


    I want to be able to just extract the numbers from column A and put them in B and put the text in column C.

    From my understanding, I can use a combination of LEFT and LEN for B. But my problem is that the numbers, are still text values. Is there a way to extract the numbers and convert them into number values so that I can sum them?

    Any help would be much appreciated.

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Need to extract numbers from a cell and convert to number values. Please help.

    For the numbers;
    =LEFT(A1,FIND(" ",A1,1)-1)
    If it's always 3 letters, you can use
    =RIGHT(A1,3)

    If the letters are variable length, as long as there are no spaces use:
    =MID(A1,FIND(" ",A1,1)+1,LEN(A1))
    Last edited by Speshul; 09-18-2014 at 05:25 PM.
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Registered User
    Join Date
    09-18-2014
    Location
    Auckland
    MS-Off Ver
    2014
    Posts
    2

    Re: Need to extract numbers from a cell and convert to number values. Please help.

    Quote Originally Posted by Speshul View Post
    For the numbers;
    =LEFT(A1,FIND(" ",A1,1)-1)
    If it's always 3 letters, you can use
    =RIGHT(A1,3)

    If the letters are variable length, as long as there are no spaces use:
    =MID(A1,FIND(" ",A1,1)+1,LEN(A1))

    Quote Originally Posted by martindwilson View Post
    just add 0 to the results,
    =LEFT(A1,FIND(" ",A1,1)-1)+0
    other ways are
    =--LEFT(A1,FIND(" ",A1,1)-1)
    =LEFT(A1,FIND(" ",A1,1)-1)*1
    you guys are legends! thanks so much!

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Need to extract numbers from a cell and convert to number values. Please help.

    just add 0 to the results,
    =LEFT(A1,FIND(" ",A1,1)-1)+0
    other ways are
    =--LEFT(A1,FIND(" ",A1,1)-1)
    =LEFT(A1,FIND(" ",A1,1)-1)*1
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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 date to number format
    By Jonathan9 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-21-2013, 09:33 AM
  2. [SOLVED] Extract all numbers from a cell to different cols for each number
    By nurulosman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-25-2012, 07:16 AM
  3. Extract the first 5 characters in a string, and convert them to a number?
    By no48 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 11-08-2008, 01:25 AM
  4. extract number and use in formula from text & numbers in cell
    By ivory_kitten in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-14-2006, 12:45 AM
  5. [SOLVED] extract numbers, convert to date
    By gkaspen in forum Excel General
    Replies: 8
    Last Post: 03-01-2005, 11:08 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