+ Reply to Thread
Results 1 to 3 of 3

How to reduce data automatically by creating averages when certain increase is reached

  1. #1
    Registered User
    Join Date
    01-28-2023
    Location
    Berlin
    MS-Off Ver
    MS Office Home and student 2016
    Posts
    1

    How to reduce data automatically by creating averages when certain increase is reached

    I have a lot of excel data and want to reduce it by creating averages. My problem is I dont know how to do it automatically.
    For example, I have 2 columns A and B. When the values in A reach an increase of 1, I want to calculate the average of all previos corresponding values in column B, until the last time the treshold was reached.
    A sample file is added. I feel like I probably need some additional columns but I cant think of a good way on how to approach this.

    Thanks for your help!
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: How to reduce data automatically by creating averages when certain increase is reached

    You can use this formula in cell C3 (there is no point in putting it in C2):

    =IF(INT(A3)<>INT(A2),AVERAGE(INDEX(B:B,MATCH(INT(A2),A:A)+(INT(A2)>0)):INDEX(B:B,ROW()-1)),"")

    Copy it down to the next row after your data.

    This assumes that the first value in A is zero.

    Hope this helps.

    Pete

    EDIT: you may have to use semicolons ( ; ) in the formula rather than commas ( , ) depending on your regional settings.

    Pete

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: How to reduce data automatically by creating averages when certain increase is reached

    Glad to help, and thanks for the rep.

    Pete

+ 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. Replies: 1
    Last Post: 04-05-2018, 05:05 PM
  2. 40% target to automatically reduce/increase upon previous week
    By chris.birlea in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-26-2017, 08:41 AM
  3. Reduce Percentage Increase
    By Baiju Gopinath in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-15-2017, 12:00 PM
  4. Replies: 1
    Last Post: 04-02-2017, 10:18 AM
  5. Replies: 1
    Last Post: 12-19-2012, 12:30 PM
  6. Replies: 3
    Last Post: 04-12-2012, 01:57 PM
  7. [SOLVED] excel function reduce and increase numbers
    By Joseph Weber in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-28-2005, 05:25 PM

Tags for this Thread

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