+ Reply to Thread
Results 1 to 3 of 3

Apply percentage based on number range and criteria

  1. #1
    Registered User
    Join Date
    05-05-2005
    Location
    Welland, Ontario, Canada
    Posts
    28

    Apply percentage based on number range and criteria

    Good day

    I have been doing some searches and quite frankly I am not 100% sure what I even should be searching for... I think range and arrays... it might even be a case of needing code verses a formula...

    I have attached a sample of what I am looking for. In practice it seems pretty simple, but I would like to automate this function to eliminate the manual calculations required...

    I want to be able to have a column(s) of a worksheet "search" for a "range of numbers" and once it is found the correct range apply a percentage multiplier from one of (in this case) two columns based on a criteria (ResourceCode).

    In my sample I am using SubTotal1 as the column that contains the number I am searching for. For the argument that number is 10.02. I would like to "search" columns From (ColA) and To (ColB) and it would find a "range" that 10.02 falls within; for the argument lets say that range is 10.0 to 10.99. In the next column I have Resource1 (ColC) and Resource2(ColD) with the increase multiplier; for the argument lets say 2.0 and 3.5. If the criteria is Resource1 then the 10.02 would be multiplied by 2.0. If the criteria is Resource2 then the 10.02 is multiplied by 3.5.

    Perhaps my sample is easier to understand then my attempt and trying to "verbalize" my request.

    I don't mind trying to figure this out for myself, but looking for some clues as where to start.

    Any assistance is appreciated.

    Cheers

    John
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-08-2016
    Location
    USA
    MS-Off Ver
    Office 365, Office 2016 for PC & Mac, Office 2013, Office 2011 Mac
    Posts
    80

    Re: Apply percentage based on number range and criteria

    Hi Navyguy,

    I think INDEX and MATCH should work. Match will search for a specified number in a range, and then returns the relative position of that item in the range. If you omit the match type or use match type 1, then it will return the relative position based on ranged (0-7,7-8,8-9...)(row number of index). The second MATCH finds the position of resource code and the match type would be zero in this case because you are wanting an exact match rather than a range (Column number of index)

    Please Login or Register  to view this content.
    I attached your example modified a bit. Let me know if you want a better explaination.

    DMG
    Attached Files Attached Files
    Last edited by dmg2016; 11-23-2016 at 01:52 AM.

  3. #3
    Registered User
    Join Date
    05-05-2005
    Location
    Welland, Ontario, Canada
    Posts
    28

    Re: Apply percentage based on number range and criteria

    Hello DMG

    Thank you for this. I see that you eliminated the "To" (ColB) and left the "Range" just in ColA, that makes sense to me because the "range is still the same.

    I will research this INDEX and MATCH functions and try to learn more.

    Your help and sample is appreciated.

    Cheers

    John

+ 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. Replies: 4
    Last Post: 11-01-2016, 03:28 PM
  2. Replies: 1
    Last Post: 09-20-2016, 07:33 PM
  3. [SOLVED] Return first number in Range based on multiple criteria
    By Perk1961 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-21-2015, 09:35 AM
  4. Replies: 2
    Last Post: 01-15-2015, 10:16 AM
  5. Formula to apply number based on date range?
    By Cdyerbg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2014, 02:47 PM
  6. [SOLVED] Return a number from a range of cells based on criteria?
    By Polymorpher in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-25-2014, 11:01 AM
  7. A formula to understand range and apply criteria
    By ChrisE in forum Excel General
    Replies: 4
    Last Post: 09-22-2011, 01:01 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