+ Reply to Thread
Results 1 to 5 of 5

how to remove char in cell with conditional

  1. #1
    Forum Contributor
    Join Date
    07-18-2006
    Posts
    135

    Question how to remove char in cell with conditional

    Dear all,

    In cell, I have the text with many Space at many different position.
    How to remove them with conditional at [A1]?

    Example : ab c ed mjg kjk

    If (a1=4, remove the first space, if (a1=5, then remove the 2nd space, ,,, repeat formula to remove all the space)

    Thank you,
    vumian

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: how to remove char in cell with conditional

    Not entirely clear but if we assume:

    ab c ed mjg kjk

    resides in A2 and you wish to have adjusted string in B2 where adjustment determined by A1 then

    B2:
    =IF(A1-3>0,SUBSTITUTE(A2," ","",A1-3),"?")

    I confess I don't understand the significance of 4 for space 1, 5 for 2 etc...

  3. #3
    Forum Contributor
    Join Date
    07-18-2006
    Posts
    135

    Question Re: how to remove char in cell with conditional

    I attached the file for more detail, please help

    Thank you
    Attached Files Attached Files

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: how to remove char in cell with conditional

    Looks a little like homework...

    Please Login or Register  to view this content.
    If it is homework I would suggest first working through the above before submitting it so that you can answer any questions should they arise...

  5. #5
    Forum Contributor
    Join Date
    07-18-2006
    Posts
    135

    Re: how to remove char in cell with conditional

    Thanks alots , it is not a homework, i stuck that issue on my job.

+ 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