+ Reply to Thread
Results 1 to 5 of 5

Excel: Filtering values and generating an average result

  1. #1
    Registered User
    Join Date
    09-02-2011
    Location
    Droitwich, UK
    MS-Off Ver
    Excel 2007
    Posts
    2

    Excel: Filtering values and generating an average result

    Hi

    I am using a formula that will compare one value to the previous value in a column and ignore them until the percentage difference between them reaches a certain value, example
    =IF(D17 <=$G$1,C17,0) G1 being the reference percentage

    The resulting values I want to add together and average them and only stop when the values drop below a percentage of the highest value. I cannot seem to get this part to work properly.

    Have uploaded a workbook as an example.

    I am new to Excel.

    Many thanks
    Phil
    Attached Files Attached Files
    Last edited by Phil Archer; 09-02-2011 at 10:21 AM. Reason: Incorrect Title

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

    Re: Excel: Filtering values and generating an average result

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    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
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Excel: Filtering values and generating an average result

    The count of cells in E24:E69 is 46, not 45, so formula in J8 should be:

    =SUM(E24:E69)/46 yielding 2889 as does this using your G8 variable:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    09-02-2011
    Location
    Droitwich, UK
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Excel: Filtering values and generating an average result

    Hi
    Many many thanks for the reply.

    Apologies but as a new user of Excel can you tell me which part of this works out the 86% of the peak value as the end of the 'value capture'?

    Thanks
    Phil

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

    Re: Excel: Filtering values and generating an average result

    Sorry, i was playing around, testing, I forgot to change the hard coded 3013 with MAX($C$9:$C$84)

    Please Login or Register  to view this content.

+ 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