+ Reply to Thread
Results 1 to 12 of 12

How to find the next occurance of a logic question

Hybrid View

  1. #1
    Registered User
    Join Date
    05-07-2009
    Location
    KC, Kansas
    MS-Off Ver
    Excel 2003
    Posts
    6

    How to find the next occurance of a logic question

    I am normally pretty good about figuring these things out but this is beyond my abilities. In the columns below B is just 95% of A. What I want to do in column C is to put the maximum value of B over the range that corresponds until the value in A is less than that. For example for my 1st run the value would be $1,125.68 because this is the maximum amount before you fall below that in column A, or in this case hits $1,106.40. I want to be able to perform this automatically down the line (expanding the range until the logic test is true) but can't figure out how to do this. The formula would basically be the max of the range in Column B is > Column A until this is not true, then return the max in Column B for entry in Column C. Then in Column D I would run an identical analysis but return the Row identifer for the dataset. Any help is appreciated.
    Last edited by wastewater; 05-08-2009 at 04:21 PM. Reason: Added xls sheet

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: How to find the next occurance of a logic question

    Welcome to the forum.

    If you want help with Excel, please post workbooks and not pictures.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    05-07-2009
    Location
    KC, Kansas
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: How to find the next occurance of a logic question

    File amended with copy of spreadsheet.

  4. #4
    Registered User
    Join Date
    05-07-2009
    Location
    KC, Kansas
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: How to find the next occurance of a logic question

    seems like I must need some type of loop command to keep checking to see whether the progressively larger max(range)> than the column A

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: How to find the next occurance of a logic question

    I don't understand your explanation, sorry. Someone else may.

  6. #6
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: How to find the next occurance of a logic question

    You need to give more details or better explanation.
    First of all, why do you have column A listing numbers and Row 1 listing A B C?
    It's confusing to understand your logic, because you are mixing Excel column designations with your column headers.

    In Excel cell D2 you have a formula Max(C2:C11). Explain why that is?

    It shouldn't be difficult to convert the logic in to formula as long as logic is clear.

    modytrane

+ 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