+ Reply to Thread
Results 1 to 8 of 8

I need help with removing text and only showing numbers

  1. #1
    Registered User
    Join Date
    05-23-2012
    Location
    Blue Mountains, Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    I need help with removing text and only showing numbers

    Hey guys, I would like to thank you in advance for any help received.

    OK, so here is my problem, I have a bunch of text and numbers in a cell, when I reference that cell through another one I don't want to show the lettering as that is screwing with the rest of my sheet.
    I have worked out how to remove the text that is before the numbers that I want, but I cannot work out how to remove the lettering that is proceeding the numbers that I need.

    Example: Median selling price in view: 4,999.06 ISK

    This code: "=RIGHT(Sheet2!C5,LEN(Sheet2!C5)-30)"
    makes the line show "4,999.06 ISK"

    I tried to add a "-FIND("isk",LEN(Sheet2!C5))"
    to fix my problem, unfortunately that didn't work for me just comes up with the "#VALUE!" error.

    In case it helps, I have imported text from a website using the "get external data from a website" command, this text cannot be changed.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: I need help with removing text and only showing numbers

    How look your number with zero's in decimal places:

    1,234.00 or 1,234?

  3. #3
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: I need help with removing text and only showing numbers

    Close - try this

    =LEFT(Sheet2!C5,LEN(Sheet2!C5)-3)

    I'm assuming you want numbers without the text.
    If I helped, please don't forget to add to my reputation. (click on the star below the post)

    If the problem is solved, please: Select Thread Tools (on top of your 1st post) -> Mark this thread as Solved.

    Failure is not falling down but refusing to get up.

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: I need help with removing text and only showing numbers

    hi Mina, try this:

    =LEFT(RIGHT(Sheet2!C5,LEN(Sheet2!C5)-30),LEN(RIGHT(Sheet2!C5,LEN(Sheet2!C5)-30))-3)

    but is your number of texts in front & the back always the same?

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Registered User
    Join Date
    05-23-2012
    Location
    Blue Mountains, Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: I need help with removing text and only showing numbers

    would i be able to tack that onto the end of the "right" function somehow?
    I tried just the "left" function that you posted and it showed all the text and numbers... im probably doing something wrong

  6. #6
    Registered User
    Join Date
    05-23-2012
    Location
    Blue Mountains, Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: I need help with removing text and only showing numbers

    yes the text, back and front will always be the same, the numbers will change in length constantly.

  7. #7
    Registered User
    Join Date
    05-23-2012
    Location
    Blue Mountains, Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: I need help with removing text and only showing numbers

    Quote Originally Posted by benishiryo View Post
    hi Mina, try this:

    =LEFT(RIGHT(Sheet2!C5,LEN(Sheet2!C5)-30),LEN(RIGHT(Sheet2!C5,LEN(Sheet2!C5)-30))-3)

    but is your number of texts in front & the back always the same?
    this worked perfectly, thank you so much... been trying to figure this out for hours.

  8. #8
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: I need help with removing text and only showing numbers

    I was working from the 4999.06 ISK and missed the other text. I must take closer attention!

    Nice solution Benishiryo.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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