+ Reply to Thread
Results 1 to 3 of 3

Finding the sum of the two highest consecutive values in a range

  1. #1
    Registered User
    Join Date
    01-22-2021
    Location
    USA
    MS-Off Ver
    MS Office 2020
    Posts
    1

    Finding the sum of the two highest consecutive values in a range

    Hello,


    I have a list of weeks with values associated to them as found in the excel doc attached.
    I'm trying to find a formula to find the sum of the two highest values from 2 consecutive weeks.
    Same thing with 10 consecutive weeks.

    Ex:
    Row1: Week 1, Week 2, Week 3
    Row2: 5, 10, 15
    In this example the answer would be 25.

    Can you please help me?
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    07-07-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    256

    Re: Finding the sum of the two highest consecutive values in a range

    Please Login or Register  to view this content.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Finding the sum of the two highest consecutive values in a range

    With the number of values to be included in A5


    =AGGREGATE(14,6,SUBTOTAL(9,OFFSET($A$2:$AZ$2,,ROW(INDIRECT("1:"&COLUMNS($A$2:$AZ$2)-A5+1))-1,,A5)),1)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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. Code for Finding Highest values, Lookup,Offset Values
    By structo in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 09-06-2016, 01:26 PM
  2. [SOLVED] Help with finding highest value in a range
    By kochark in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-21-2014, 11:29 AM
  3. Finding 2nd or 3rd highest value in range
    By jmhultin in forum Excel General
    Replies: 4
    Last Post: 03-11-2013, 06:38 AM
  4. Replies: 4
    Last Post: 10-08-2010, 04:18 AM
  5. Finding the highest values
    By bob135 in forum Excel General
    Replies: 6
    Last Post: 04-12-2006, 03:30 AM
  6. [SOLVED] Finding and Formatting the 5 highest values in a range?
    By lance in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-19-2005, 03:05 PM
  7. [SOLVED] Finding and Formatting the 5 highest values in a range?
    By Lance Hoffmeyer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-18-2005, 07:05 PM

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