+ Reply to Thread
Results 1 to 5 of 5

Looking for help on a formula/function that can do a dynamic strip of a value

  1. #1
    Registered User
    Join Date
    04-06-2015
    Location
    Sioux Falls, SD
    MS-Off Ver
    2013
    Posts
    14

    Looking for help on a formula/function that can do a dynamic strip of a value

    I've run into an issue where parsing out a file left me no choice but to have combined values and text string separated by a space. I'm trying to pull the values out of these cells but it needs to be dynamic since the values change in length. For example here are some of the cells:
    6.11 CR
    295.21 DB
    12.30 CR
    189.85 CR

    Hoping there is a function or formula that could always pull the values out of these cells regardless of the length in the value but remove the trailing space and "CR" OR "DB"?

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Looking for help on a formula/function that can do a dynamic strip of a value

    Try this

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

    Data Range
    A
    B
    1
    6.11 CR
    6.11
    2
    295.21 DB
    295.21
    3
    12.30 CR
    12.3
    4
    189.85 CR
    189.85
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    04-06-2015
    Location
    Sioux Falls, SD
    MS-Off Ver
    2013
    Posts
    14

    Re: Looking for help on a formula/function that can do a dynamic strip of a value

    I thought I replied, but don't see it. That worked! What does the "--" before the LEFT function do?

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Looking for help on a formula/function that can do a dynamic strip of a value

    Quote Originally Posted by TheRock_82 View Post
    I thought I replied, but don't see it. That worked! What does the "--" before the LEFT function do?
    -- will convert text to number.

  5. #5
    Registered User
    Join Date
    04-06-2015
    Location
    Sioux Falls, SD
    MS-Off Ver
    2013
    Posts
    14

    Re: Looking for help on a formula/function that can do a dynamic strip of a value

    Cool! Thanks for your help! I love working with these human readable reports (insert sarcasm here!) I appreciate the tips!

+ 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. Replies: 1
    Last Post: 07-03-2014, 04:32 AM
  2. [SOLVED] Excel 2007 : Use RIGHT function correctly to strip unneeded data away
    By mrchinchin25 in forum Excel General
    Replies: 4
    Last Post: 03-21-2014, 01:59 PM
  3. Frequency with subtotal function formula for dynamic histogram
    By 5150 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-12-2013, 08:37 PM
  4. Function to strip out characters from a range of cells
    By vba_novice in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-20-2011, 01:26 PM
  5. Formula to strip leading articles
    By Tiktock in forum Excel General
    Replies: 4
    Last Post: 10-19-2010, 08:10 PM
  6. Adding a function to strip the address from a hyperlink
    By Barb Reinhardt in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-16-2005, 12:05 PM
  7. Formula to strip figures from cells text strings
    By mikeburg in forum Excel General
    Replies: 5
    Last Post: 08-15-2005, 09: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