+ Reply to Thread
Results 1 to 5 of 5

VB Code to change the content of cell if it meets criteria

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

    VB Code to change the content of cell if it meets criteria

    Hello:

    Please refer to attached file.

    I need VB Code to do following.
    If value in column A is "Store1" and corresponding value is column i is "3500" then i need to change text in corresponding cell in column E to be "Rental Income"
    In atatched file, cell E8 needs to chnage to "Rental Income"

    Let me know if you have any questions.
    Thanks.

    Riz
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: VB Code to change the content of cell if it meets criteria

    Hi Riz,

    Try this:

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

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

    Re: VB Code to change the content of cell if it meets criteria

    Hello Trebor76

    Thanks a lot, this works

    Is there a way to modify the code so that to search text "Deposit" in column E and iif it finds then replace the full text with "Deposit"

    This will help clean up my data.

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



    RIz
    Last edited by rizmomin; 07-13-2020 at 07:40 AM.

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

    Re: VB Code to change the content of cell if it meets criteria

    Hello:

    I got it how i wanted.

    Thanks a lot..

    Riz

  5. #5
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: VB Code to change the content of cell if it meets criteria

    Thanks for the feedback and you're welcome. Thanks too for the rep

+ 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. VB Code to copy certain data from 1 sheet to another which meets criteria
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-10-2019, 09:45 PM
  2. [SOLVED] Help with vba code to look at array and perform action when cell meets criteria
    By rv02 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-20-2018, 02:40 PM
  3. [SOLVED] Modify code instead equal content change to specified content
    By elmnas in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-28-2015, 07:55 AM
  4. VBA code to add data in the list that meets certain criteria
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2014, 06:33 AM
  5. Replies: 4
    Last Post: 02-17-2014, 04:05 AM
  6. Need VB code that would SUM cells if meets criteria
    By goyex in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-10-2012, 09:37 PM
  7. VBA code for last cell that meets certain criteria?
    By shadyferret in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-24-2012, 05:34 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