Results 1 to 7 of 7

Macro to multiply a series of numbers by -1 if target cell matches a list

Threaded View

  1. #1
    Registered User
    Join Date
    07-25-2013
    Location
    Scottsdale, Az
    MS-Off Ver
    Excel 2007
    Posts
    4

    Macro to multiply a series of numbers by -1 if target cell matches a list

    Hi Everyone,

    This is my first post in this forum so I would like to thank everyone in advance for helping me out with this problem.

    I have a list of accounts with values in them for 12 months in the year. If the account matches a pre-specified list of "revenue accounts" I need to multiply the data in each month by -1.

    Based on the attached worksheet, the logic is more clearly stated as "if Column C = one of the values in A4:A14 multiply E:P by -1." Since my data tables have no headers, the operation would start on row 1.

    If possible, I would like the "revenue accounts" to be hard coded into the code so that I can apply the macro to divverent workbooks without having to type in the revenue account list and update the references.

    Thanks again.

    Aaron
    Attached Files Attached Files
    Last edited by ameinfrank; 07-26-2013 at 01:45 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 01-22-2013, 06:11 PM
  2. [SOLVED] Pull 2 Numbers From Cell Then Multiply Them
    By icschenholm in forum Excel General
    Replies: 3
    Last Post: 07-18-2012, 03:51 PM
  3. Macro to generate list of numbers to link only one series to a key
    By cgkmal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-06-2012, 01:27 AM
  4. Multiply a range of numbers by a cell ?
    By Table10sHotShot in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-26-2006, 04:05 PM
  5. count the # of entries when sum matches the target
    By maxim.morozov@oriflame.be in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-14-2006, 09:10 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