Consulting

Results 1 to 4 of 4

Thread: Solved: Delete plus Trim word

  1. #1

    Solved: Delete plus Trim word

    Hi,

    I would like to do two functions one after the other.

    I have some fruit names in Cells A7:A14 eg. white apple, green pear etc.
    Colours are only white or green while fruit has many types.

    I need to go through list delete colour (white or green) and trim remaining word (apple, pear etc.)

    How do I do that?


  2. #2
    VBAX Regular
    Joined
    Dec 2010
    Posts
    15
    Location
    The easiest way would be to use Replace All. First replace "White " ... that's the word "White" with a space following it ... no quotes. Don't put anything in the replace box. Repeat with "Green ". You shouldn't need to "trim" but, if there are any residual spaces, just use Replace All again, replacing a space with nothing.

    Regards, TMS

  3. #3
    Great thanks!


  4. #4
    VBAX Regular
    Joined
    Dec 2010
    Posts
    15
    Location
    You're welcome.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •