+ Reply to Thread
Results 1 to 4 of 4

Make value negative if it finds certain text

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

    Make value negative if it finds certain text

    Hello:

    I have excel worksheet with lots of data in column A thru Column P.

    I need a VB macro to do the following:

    I need to find word : "TERMS DISCOUNT" in column F and if it finds it then make the number in column H in corresponding
    row negative.

    Example:

    If it finds word "TERMS DISCOUNT" in Cell F24, then make cell H24 negative.
    If it finds word "TERMS DISCOUNT" in Cell F33, then make cell H33 negative.

    Please let me know if any questions.

    Thank you

    Riz Momin
    Last edited by rizmomin; 09-03-2013 at 09:45 PM.

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

    Re: Make value negative if it finds certain text

    Hi rizmomin,

    Try this macro:

    Please Login or Register  to view this content.
    HTH

    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: Make value negative if it finds certain text

    Hi Trevor76:

    Thanks a lot for your help, this works great.

    Riz Momin

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

    Re: Make value negative if it finds certain text

    Thanks for the feedback and you're welcome. Thanks also for marking the thread as solved and for adding to my reputation

+ 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] Equation That Finds Part of a Text
    By garrett.grillo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-15-2013, 08:01 PM
  2. Replies: 0
    Last Post: 04-22-2013, 12:13 PM
  3. how to make the COUNTIF function stop searching after it finds 1 thing
    By Jona2491 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-30-2013, 07:38 PM
  4. Replies: 5
    Last Post: 05-12-2009, 04:47 PM
  5. Writing a function that finds the numbers that make up a total
    By scotts091 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-09-2008, 01: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