+ Reply to Thread
Results 1 to 4 of 4

Extract Number from Cell

  1. #1
    Registered User
    Join Date
    03-13-2018
    Location
    Pittsburg, Kansas
    MS-Off Ver
    2016
    Posts
    38

    Extract Number from Cell

    I have cells with content such as "104684 - DIGITAL CAMERA." I need to extract the number and place it into another cell. Any assistance with a formula would be most appreciated, please.

    Thank you.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    59,373

    Re: Extract Number from Cell

    Try this:

    =TRIM(LEFT(A1,FIND("-",A1)-1))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" to anyone who has offered you help in your thread. You can reward them by clicking on * Add Reputation below theur user name on the left, if you wish.


    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    2,989

    Re: Extract Number from Cell

    You need to give a few samples perhaps attach a workbook as per the yellow banner. for what you have given

    left(a1,search(" ",a1,1)-1) would work as it is just the characters before the first space

    or left(a1,search(" ",a1,1)-1) *1 to turn it into a number

    this may not be representative of all your data tho

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    59,373

    Re: Extract Number from Cell

    Thanks for the rep.

+ 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 number from cell contain text and count of non empty cell
    By mazan2010 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-03-2017, 01:17 PM
  2. [SOLVED] Extract same number and name in a cell
    By dtaphuong in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-22-2017, 04:59 AM
  3. extract number from text and number cell
    By south in forum Excel General
    Replies: 15
    Last Post: 08-23-2014, 03:28 AM
  4. [SOLVED] Extract Number from cell
    By Nick.123 in forum Excel General
    Replies: 21
    Last Post: 08-21-2014, 07:06 AM
  5. Extract number from a cell
    By mars.manee in forum Excel General
    Replies: 1
    Last Post: 01-09-2013, 12:02 PM
  6. extract number to a different cell
    By aranechan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-07-2011, 12:54 PM
  7. How to extract the first number in a cell?
    By Billznik in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-23-2009, 12:31 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