+ Reply to Thread
Results 1 to 7 of 7

Finding if price data between cells satisfies conditions

  1. #1
    Registered User
    Join Date
    01-27-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    18

    Finding if price data between cells satisfies conditions

    Hi, I'm trying to determine if a price at a specified date (x) is greater than all the subequent prices (from date x+1) to another point (Y). I'd like to iterate this so that to the right of this column, I have further columns that show the results from Y to its corresponding previous Xs.

    So, basically two conditions.

    1. If cell = Y (then this triggers the calculation)
    2. if price at x is > prices from x+1 to Y.
    3. iterate for Y to all previous x

    Spreadsheet attached for reference. Thanks very much.
    Attached Files Attached Files
    Last edited by northerng; 06-02-2011 at 09:58 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Finding if price data between cells satisfies conditions

    Maybe you can try showing a more detailed worksheet with various possibilities along with a sample of completed expected results and detail why those are the results expected.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-27-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Finding if price data between cells satisfies conditions

    Thanks for the suggestion. Please take a look at the attached. I'm hoping it gives a better idea of what I'm after.. Thank you.
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Finding if price data between cells satisfies conditions

    Try this:

    In E2:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER and copied down

    in F2:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER and copied down

    in G2:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER and copied down

    Note:

    If there are not enough "x's" before the current row, then a blanks is returned.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-27-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Finding if price data between cells satisfies conditions

    Thanks for the reply.. I think it's getting to what I'm after but not quite there..

    I've tried playing around with the formula but can't get my head around it. If you look at the spreadsheet u helped update, cell F8 should show "TRUE" because the price in cell B3 (being the 2nd "x" back from the current "Y") is greater than all cell prices from cells B4:B8 (being the cells from x+1 to Y).

    The other cells are correct in showing "FALSE". Appreciate any further suggestions!

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Finding if price data between cells satisfies conditions

    Is the attached an improvement?

    New formulas in E2:G2, respectively:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    each confirmed with CSE key combination and copied down.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-27-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Finding if price data between cells satisfies conditions

    Perfect! Thanks very much NBVC..

+ 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