+ Reply to Thread
Results 1 to 5 of 5

remove characters before "="

  1. #1
    Registered User
    Join Date
    05-14-2006
    Posts
    24

    remove characters before "="

    Dear all,

    I had a spreadsheet which i wish to remove all characters from "=" and before. How should i do that?

    example:

    timer=100 -->>> 100


    thanks

  2. #2
    Registered User
    Join Date
    05-14-2006
    Posts
    24
    Hi all,

    i know this can be done by just using RIGHT(A1,3). However, i have different cells where everyone does not have the same len.

    example:

    timer=100 -->100
    target=2333--> 2333
    test=400 --> 400


    How should i remove that?

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Ymeyaw,

    You the Instr function to find the "=" and then split the string using MID. . This macro will change every cell on the worksheet that has an "=" in it.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Or if you wanted to do it with a formula rather than vba, use:

    =RIGHT(A1,LEN(A1)-(FIND("=",A1)))

    Change the cell reference to fit in your spreadsheet, then copy down. It will pull only data after the = sign.

  5. #5
    Registered User
    Join Date
    05-14-2006
    Posts
    24
    Hi,
    Thanks for ur fast response. I just tried it but encounter error "run time error "13" type mismatch.

+ 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