+ Reply to Thread
Results 1 to 7 of 7

Need a formula for a sliding scale

  1. #1
    Registered User
    Join Date
    06-18-2010
    Location
    Orange Park, FL
    MS-Off Ver
    Office 365
    Posts
    78

    Need a formula for a sliding scale

    On Sheet "Current" in Column K I need it to say (K5)
    if J5<>"DOM",J5
    if it does equal "DOM" then if the total volume (Column G) of Port 1 (Column J) for DOM is < 100 then DOM1
    if the total volume (Column G) of Port 1 (Column J) for DOM is 100 to <250 then DOM2
    if the total volume (Column G) of Port 1 (Column J) for DOM is 250 to <500 then DOM3
    if the total volume (Column G) of Port 1 (Column J) for DOM is 500 or > then DOM4

    I know this should be fairly easy, but I can't figure it out.

    Thank you
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Need a formula for a sliding scale

    If I follow the question, try using a LOOKUP function instead of IF's

    =IF(J5<>"DOM",J5,LOOKUP(G5,{0,100,250,500},{"DOM1","DOM2","DOM3","DOM4"}))

    Lookup will match G5 to the largest value in Array 1 that is not larger than G5, and return the corresponding index in Array 2


    If G5 is 174
    Where array 1 is
    {0,100,250,500}
    And array 2 is
    {"DOM1","DOM2","DOM3","DOM4"}

    174 will match with 100, the second index in array1 (because it is the largest number not greater than 174), and return DOM2, which is the second index in array 2
    Last edited by Speshul; 09-30-2014 at 12:17 PM.
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Need a formula for a sliding scale

    Hi,

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Richard Buttrey; 09-30-2014 at 12:20 PM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    06-18-2010
    Location
    Orange Park, FL
    MS-Off Ver
    Office 365
    Posts
    78

    Re: Need a formula for a sliding scale

    Both of those would work EXCEPT that it needs to be the Total Vol of DOM, not just 1 line, so if there are 2 lines for DOM it needs to add those to see what the total is.

  5. #5
    Registered User
    Join Date
    06-18-2010
    Location
    Orange Park, FL
    MS-Off Ver
    Office 365
    Posts
    78

    Re: Need a formula for a sliding scale

    This would work EXCEPT that it needs to be the Total Vol of DOM, not just 1 line, so if there are 2 lines for DOM it needs to add those to see what the total is.
    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Need a formula for a sliding scale

    So something like this?


    =IF(J5<>"DOM",J5,LOOKUP(SUMIF(Table2[Port 1],"DOM",Table2[Total Vol]),{0,100,250,500},{"DOM1","DOM2","DOM3","DOM4"}))

  7. #7
    Registered User
    Join Date
    06-18-2010
    Location
    Orange Park, FL
    MS-Off Ver
    Office 365
    Posts
    78

    Re: Need a formula for a sliding scale

    PERFECT! Thank you so much!
    Quote Originally Posted by Speshul View Post
    So something like this?


    =IF(J5<>"DOM",J5,LOOKUP(SUMIF(Table2[Port 1],"DOM",Table2[Total Vol]),{0,100,250,500},{"DOM1","DOM2","DOM3","DOM4"}))

+ 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] Sliding scale formula needed
    By kewl_jules in forum Excel General
    Replies: 8
    Last Post: 10-26-2012, 09:20 PM
  2. Formula for a sliding scale fee
    By trevorchorn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-23-2012, 05:22 PM
  3. [SOLVED] Unequal Sliding Scale Formula
    By Aclowntant in forum Excel General
    Replies: 1
    Last Post: 04-18-2012, 12:57 PM
  4. Sliding scale formula
    By vbidiot in forum Excel General
    Replies: 7
    Last Post: 07-11-2011, 10:21 AM
  5. Need help with sliding scale compensation formula
    By goosebug in forum Excel General
    Replies: 1
    Last Post: 06-22-2011, 02:40 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