+ Reply to Thread
Results 1 to 3 of 3

Four rule statement with multiple criterias (Formula?, macro?, IDK??)

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    peoria, illinois
    MS-Off Ver
    Excel 2010
    Posts
    8

    Four rule statement with multiple criterias (Formula?, macro?, IDK??)

    I need to create a formula for the following rules.
    (Document attached)
    help.xlsx

    1)If previous months index is greater than the previous months (base + previous months max) then display previous months index.
    If not then display previous months base

    2)If previous months index is less than the previous months (base + previous months min)
    Then display previous months index
    If not then display previous months base

    3)If previous months index is greater than the previous months ceiling
    Then display ceiling
    If not, then display either the index or base using rules #1 & #2

    4)If previous months index is less than the previous months floor
    Then display floor
    If not, then display either the index or base using rules #1 & #2

    F G H I J K L
    Month Base Index Min Max Floor Ceiling
    Jan 600 $622 -30 30 400 700
    Feb $607 -30 30 400 700
    Mar $609 -30 30 400 700
    Apr $598 -30 30 400 700
    May $575 -30 30 400 700
    June $550 -30 30 400 700
    July $800 -30 30 400 700
    August $300 -30 30 400 700
    September $450 -30 30 400 700
    October $560 -30 30 400 700
    November $570 -30 30 400 700

    I have no idea where to start and any help would be appreciated

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Four rule statement with multiple criterias (Formula?, macro?, IDK??)

    Hi and welcome to the forum

    This will get you started for the 1st part...
    =IF(H10>G10+J10,G10,IF(H10<G10+H10,H10,G10))

    But how do you want to handle when...
    1)If previous months index is greater than the previous months (base + previous months max) then display previous months index.
    3)If previous months index is greater than the previous months ceiling then display ceiling?

    You are asking for 2 different returns based on a match for the same criteria?

    Perhaps it wiould help if you added a few sample answers, and how you arrived at them
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    07-10-2013
    Location
    peoria, illinois
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Four rule statement with multiple criterias (Formula?, macro?, IDK??)

    I could not figure out how to attach a new file but i pasted an example column below. The formula you provided doesn't provide the calculation I'm looking for but I appreciate it.




    F G H I J K L
    Month Base EXAMPLE ROW Index Min Max Floor Ceiling
    Jan 600 600 $622 -30 30 400 700
    Feb 600 $607 -30 30 400 700
    Mar 600 $609 -30 30 400 700
    Apr 600 $598 -30 30 400 700
    May 600 $650 -30 30 400 700
    June 650 $750 -30 30 400 700
    July 700 $300 -30 30 400 700
    August 400 $480 -30 30 400 700
    September 480 $420 -30 30 400 700
    October 420 $450 -30 30 400 700
    November 420 $430 -30 30 400 700
    December 420

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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