+ Reply to Thread
Results 1 to 5 of 5

convert text to number, deleting the real text part

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-21-2012
    Location
    rome, italy
    MS-Off Ver
    365
    Posts
    132

    convert text to number, deleting the real text part

    I have a huge list in a column.

    2500 mm.
    12500 mm.
    1325 mm.
    145500 mm.
    ...
    ..
    .

    the " mm." at the end make every cell contents to be text.
    i need to convert cells in numbers, deleting the " mm." part and i need to make it by a formula, not by hand.

    is it possible by formula to obtain numbers?
    2500
    12500
    1325
    145500
    ...
    ..
    .

    ?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,403

    Re: convert text to number, deleting the real text part

    Based on your small example set:

    =--LEFT(A1,FIND(" ",A1)-1)
    Attached Files Attached Files
    Ali


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

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

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

    Re: convert text to number, deleting the real text part

    Yes

    Many ways, transform with power query
    split column with text to columns under data
    =left(a1,len(a1)-3)*1
    =SUBSTITUTE(a1," mm","",1)*1

    the *1 turns them into numbers, otherwise they are the numbers as text with out the mm

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: convert text to number, deleting the real text part

    One way:

    =-LOOKUP(1,-LEFT(B3,ROW($1:$100)))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,403

    Re: convert text to number, deleting the real text part

    Thanks for the rep.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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] Data Connection to Textfile - Convert Text to Real Number
    By Joakim N in forum Excel General
    Replies: 3
    Last Post: 04-13-2020, 05:23 AM
  2. deleting part of text
    By fla-ts in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-08-2016, 02:02 PM
  3. [SOLVED] Convert Long Part Number List to "Text" Format??
    By TestMailinator in forum Excel General
    Replies: 2
    Last Post: 04-20-2015, 11:01 AM
  4. Convert text in multiple columns to real date and time
    By ken444444 in forum Excel General
    Replies: 4
    Last Post: 10-06-2014, 01:19 PM
  5. Macro to automatically convert prt scr image-based text to real text in cell
    By jasonfromchico in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2014, 02:27 PM
  6. [SOLVED] How do you convert numbers to real text
    By Harry in forum Excel General
    Replies: 5
    Last Post: 01-26-2006, 10:25 PM
  7. Convert numeric part of text to number
    By davegb in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2005, 05:05 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