Results 1 to 20 of 20

Criteria based Addition and Subtraction - VBA Request

Threaded View

  1. #1
    Forum Contributor spiwere's Avatar
    Join Date
    01-11-2013
    Location
    IN
    MS-Off Ver
    Excel 2007
    Posts
    410

    Criteria based Addition and Subtraction - VBA Request

    Good day everyone!

    I need some help on a piece of analysis that has been taking a lot of time of my daily work. I’ve provided the explanation and expected output in the tab Named Report. My data is huge, and therefore; I’m requesting some assistance with a Macro that can help me accomplish this. Here’s my request in a nutshell.

    The process:

    Calculate % for each team member to provide benefit for entries tagged as “Not Found” in column B and “Negative” in column C of the Tab named “DATA”
    The % benefit is to be calculated from Column E of Tab 1, and added to the total Positive Count, and at the same time excluded from the total Negative Count
    The logic is to also help me update the change in status for each entry in the Data tab.

    Priority on converting Negatives to Positives under each category:

    Priority 1: AD
    Priority 2: WP
    Priority 3: AT
    Priority 4: VM

    Examples:

    1:If there are 4 Not Found + Negatives: The Negatives should be equally divided and subtracted from each Negative category, and the benefit is added to Positive (In this case: 1 Not Found Negative will be subtracted from LD, WP, AT and VM)
    2:If there are 3 Not Found + Negatives: The Negatives should be equally divided and subtracted from each Negative category in order of Priority listed above, and the benefit is added to Positive (In this case: 1 Not Found Negative will be subtracted from LD, WP and AT)
    3: If there are 5 Not Found + Negatives: The Negatives should be divided and subtracted from each Negative category, and the benefit is added to Positive in order of Priority (In this case: Not Found Negative will be subtracted as follows 2 LD, 1 WP, 1 AT and 1 VM)

    The same logic is to be run on 60%, 70% as well. I was hoping for a dynamic dropdown or something wherein I can easily change the % allocation based on the requirement.

    Please help me counter this. Thanks a lot!

    Happy New Year!

    Best,
    Attached Files Attached Files
    Last edited by spiwere; 01-21-2015 at 04:34 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sum numbers based on a category of a category
    By mattjac in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-09-2012, 11:08 PM
  2. Auto substract by comparing the category
    By expert40 in forum Excel General
    Replies: 2
    Last Post: 02-12-2012, 06:54 AM
  3. Allocation Based on Date
    By Ada01 in forum Excel General
    Replies: 1
    Last Post: 10-16-2010, 02:19 PM
  4. substract two time logs based on a string
    By CptLimaBean in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-11-2008, 11:23 AM
  5. [SOLVED] How do I substract numbers in range like this: Substract(a1..a10)
    By Paulo in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 11-17-2005, 12:50 AM

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