+ Reply to Thread
Results 1 to 3 of 3

VB Code to find text with criteria and change text

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to find text with criteria and change text

    Hello Sir:

    I have data as shown.
    I need VB Code to go thru the Payee in column and Amount in Column F.
    If Payeee is "Internal Revenue Service" and Amount is greate then 500.00 then
    change the Payee to "Internal Revenue Service - 940' Otherwise
    change the Payee to "Internal Revenue Service - 941'

    In this case E2 will change to "Internal Revenue Service - 941'
    In this case E3 will change to "Internal Revenue Service - 941'
    In this case E4 will change to "Internal Revenue Service - 940'




    Please let me know if you have any questions.
    Thanks.


    R
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,148

    Re: VB Code to find text with criteria and change text

    Your expected results are opposite of your stated requirement.

    Please Login or Register  to view this content.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to find text with criteria and change text

    Hello John:

    Thanks a lot, works for me.

    R

+ 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. Replies: 5
    Last Post: 04-05-2022, 05:56 AM
  2. [SOLVED] VB Code to find text and replace with defined text
    By rmomin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-21-2021, 03:04 PM
  3. VB Code to find certain text in column and change
    By rmomin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2021, 02:09 AM
  4. [SOLVED] How to find the second occurrence text based on text criteria
    By Villalobos in forum Excel General
    Replies: 2
    Last Post: 03-03-2017, 05:31 AM
  5. [SOLVED] How to change find formula from single text field to more than one text field
    By cmwilbur in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-11-2015, 04:13 PM
  6. InStr function doesn't find specific text, but finds any text in column and runs code
    By mikey3580 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-27-2014, 03:50 AM
  7. Replies: 4
    Last Post: 07-01-2012, 07:24 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