+ Reply to Thread
Results 1 to 5 of 5

Text extraction using numbers MID()

  1. #1
    Registered User
    Join Date
    08-08-2005
    Posts
    76

    Text extraction using numbers MID()

    I am trying to extract a text based on a cell containing a number set to 3 decimal places, ie. A1 = 7.140

    I have been using the following formula - MID(A1,1,1)&MID(C13,3,3)&"0" which yields 7140.

    The goal is to extract all four numbers sequentially excluding the decimal (it is used as an automated text feed for another long formula), ie. want:

    7.142 => 7142
    7.140 => 7140
    7.700 => 7700

    The problem is the formula above falls apart for the first and third example where 7.142 outputs 71420 and 7.700 outputs 770.

    Is there any other function that can read the character 0?
    Last edited by heatwave; 04-04-2011 at 03:08 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Text extraction using numbers MID()

    How about

    =A1*1000&""
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Text extraction using numbers MID()

    But maybe I don't understand your example, you are mixing references to A1 and C13 in the same formula. Why are you grabbing from two different cells?

  4. #4
    Registered User
    Join Date
    08-08-2005
    Posts
    76

    Re: Text extraction using numbers MID()

    Hey Jazzer, thanks for the reply. I figured it out as well (*1000) 10 mins after I posted this thread. How do you delete a thread?? I cannot seem to locate the delete button or link anywhere.

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Text extraction using numbers MID()

    hi heatwave,
    No need to delete it just
    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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