+ Reply to Thread
Results 1 to 2 of 2

Remove Chars in Call Based on Condition

  1. #1
    Forum Contributor
    Join Date
    12-19-2011
    Location
    Central Europe
    MS-Off Ver
    Excel O365
    Posts
    361

    Remove Chars in Call Based on Condition

    Hi everyone

    I am looking for a way to modify the cell values via VBA in a way that it removes chars of a cell value based on a condition

    i.e. I have values (all in the same column) auch as

    505.k8i
    2005.fd
    30453.uere


    What I would like to do is only show the value before the decimal separator (.) plus one additional char before that
    So my result would be
    50 (5.k8i being removed)
    200 (5.fd being removed)
    3045 (3.uere being removed)

    Any chance to achieve this?

    Thanks and regards
    FD

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Remove Chars in Call Based on Condition

    Given that the examples are in column A in range A1:A3, try this:
    Please Login or Register  to view this content.
    Another way is to do it by RegEx.

    Cheers,
    berlan

+ 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. Call cell value from other sheet based on condition (Complicated)
    By hecgroups in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-25-2013, 08:22 AM
  2. [SOLVED] Help! Remove numbers and all chars to left of the numbers.
    By trouble085 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-08-2012, 09:54 PM
  3. Remove rows based on specific condition
    By shinichi_nguyen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-27-2012, 02:30 PM
  4. Remove iNdex chars From Left
    By teodormircea in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-21-2009, 08:19 AM
  5. [SOLVED] remove blanks from a string of chars within a cell?
    By rayhollidge in forum Excel General
    Replies: 3
    Last Post: 01-07-2005, 11:08 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