+ Reply to Thread
Results 1 to 5 of 5

VB Code to condtionally find text and add Character

  1. #1
    Forum Contributor
    Join Date
    01-31-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010
    Posts
    193

    VB Code to condtionally find text and add Character

    Hello:

    Please refer to attached file.
    I need VB Code to do following task.

    Look for text in column D which does not have text "Merchant" or "Deposit" and have Text "CR" in column F.
    Once found add text "CR in Front of the text (Column D)

    In attached file, I have highlighted 2 in column D which meets this criteria.

    So
    D5 = CR TAP & GO, LLC SENDER
    D12 = CR IRS USATAXPYMT

    I hope this is clear.

    Let me know if you have any questions.
    Thanks.
    R
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-16-2023
    Location
    Poland
    MS-Off Ver
    Excel 2019 32bit WIN10
    Posts
    88

    Re: VB Code to condtionally find text and add Character

    I propose:
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    01-31-2012
    Location
    Georgia
    MS-Off Ver
    Excel 2010
    Posts
    193

    Re: VB Code to condtionally find text and add Character

    Hello Tojan

    Thanks a lot, it works

    R

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,299

    Re: VB Code to condtionally find text and add Character

    Just for the fun of it...Another option...
    Please Login or Register  to view this content.
    Last edited by sintek; 12-10-2023 at 07:57 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  5. #5
    Forum Contributor
    Join Date
    11-23-2022
    Location
    Amsterdam
    MS-Off Ver
    2021
    Posts
    193

    Re: VB Code to condtionally find text and add Character

    Or:

    Please Login or Register  to view this content.
    Edit: hmm that doesn't work. Working on it.
    Edit2: it seems this is not possible. Need to evaluate one for one, bummer.
    Last edited by kaasplankje; 12-11-2023 at 12:08 PM.

+ 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. [SOLVED] VB Code to find duplicate and add character
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-05-2021, 04:01 PM
  2. VB Code to find blank character
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-14-2020, 10:41 PM
  3. [SOLVED] to find all the positons of character in a text which is unmatched with other text string.
    By Vivek2705 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-14-2019, 12:38 PM
  4. [SOLVED] VB Code to find row# with certain character
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-15-2016, 07:08 AM
  5. [SOLVED] Find text left or right of a specific character in a text string
    By Locopete99 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-14-2014, 05:55 AM
  6. Replies: 4
    Last Post: 04-06-2014, 01:21 PM
  7. Macro to find character and delete all text in cell after the character
    By SpencerRichman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2012, 06: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