+ Reply to Thread
Results 1 to 3 of 3

Apply VBA Script based on Text in one column and apply a formula in another column

  1. #1
    Registered User
    Join Date
    04-19-2016
    Location
    Melbourne
    MS-Off Ver
    2013
    Posts
    9

    Apply VBA Script based on Text in one column and apply a formula in another column

    Hi Excel gurus, I have an excel spreasheet where I need a VBA script which does the following
    1. Column E, if cell = text "Credit Memos" or "Payments" or "Return", then;
    2. Column G, Convert the value to negative, basically doing value x -1

    sample file attached

    Thank a lot.
    Cheers
    Attached Files Attached Files

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,517

    Re: Apply VBA Script based on Text in one column and apply a formula in another column

    Heres on way

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Registered User
    Join Date
    04-19-2016
    Location
    Melbourne
    MS-Off Ver
    2013
    Posts
    9

    Re: Apply VBA Script based on Text in one column and apply a formula in another column

    Brilliant, thanks Mike

+ 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. apply a formula to a whole column
    By abelle82 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-04-2016, 03:28 PM
  2. [SOLVED] Using VBA to apply Conditional Formatting based on a calculation to Column
    By tonygg9 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-12-2014, 09:48 PM
  3. Apply formula to all cells in column C for all populated cell in column A
    By mrplow911 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-18-2014, 11:19 AM
  4. Apply a formula in a new column that pulls unique values from another column
    By shepherdc2814 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-24-2014, 10:04 PM
  5. How to apply one column formula to entire column ?
    By isaackoh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2014, 12:21 PM
  6. VBA for Conditional Formatting - apply a colour based on conditions in each column.
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-27-2013, 01:24 PM
  7. Apply Formula to a Whole Column
    By somebody123 in forum Excel General
    Replies: 18
    Last Post: 11-26-2008, 05:37 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