+ Reply to Thread
Results 1 to 10 of 10

How to find the maximum value of the last 6 consecutive days without spaces?

  1. #1
    Forum Contributor
    Join Date
    09-01-2020
    Location
    bangladesh
    MS-Off Ver
    office 2007
    Posts
    167

    How to find the maximum value of the last 6 consecutive days without spaces?

    B2:AF2 , the last 6 consecutive days as 18790.425 19480.144 17561.242 22241.642 21808.236 22056.135
    Place the maximum value in cell A2
    B3:AF3 , the last 6 consecutive days as 34507.729 31460.845 30667.831 31876.037 34445.296 34690.466
    Place the maximum value in cell A3
    B4:AF4 , the last 6 consecutive days as 19 3 5 15 12 18
    Place the maximum value in cell A4

    Any help would be appreciated!
    Attached Files Attached Files
    Last edited by rayhen; 12-21-2020 at 03:13 AM.

  2. #2
    Registered User
    Join Date
    12-03-2020
    Location
    Bangkok,Thailand
    MS-Off Ver
    365
    Posts
    29

    Re: How to find the maximum value of the last 6 consecutive days without spaces?

    At A2, try this with CSE

    =IFERROR(MAX(--((COLUMN($B:$AF)-1)<=LARGE(IF(MID(CONCAT(--NOT(ISBLANK($B2:$AF2))),ROW($A$1:$A$20),6)="111111",ROW($A$1:$A$20),""),1)+5)*--((COLUMN($B:$AF)-1)>=(LARGE(IF(MID(CONCAT(--NOT(ISBLANK($B2:$AF2))),ROW($A$1:$A$20),6)="111111",ROW($A$1:$A$20),""),1)))*$B2:$AF2),"Not Available")

  3. #3
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: How to find the maximum value of the last 6 consecutive days without spaces?

    there is volatile array function for 2003-2007
    Please Login or Register  to view this content.
    or
    volatile non array for 2013 ...
    Please Login or Register  to view this content.
    array but not volatile with MMULT in the XLSX attachment
    Attached Files Attached Files
    Last edited by BMV; 12-21-2020 at 04:27 AM. Reason: xls moved to next my post

  4. #4
    Forum Contributor
    Join Date
    09-01-2020
    Location
    bangladesh
    MS-Off Ver
    office 2007
    Posts
    167

    Re: How to find the maximum value of the last 6 consecutive days without spaces?

    #2 The result here is Available
    #3 BMV you are too good, only the first formula can be used, the second one is not

    Both Much appreciated!

  5. #5
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: How to find the maximum value of the last 6 consecutive days without spaces?

    Long? non array but not volatile option for 2003
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,420

    Re: How to find the maximum value of the last 6 consecutive days without spaces?

    Try A2 cell , Array formula , drag down

    HTML Code: 

  7. #7
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: How to find the maximum value of the last 6 consecutive days without spaces?

    @wk9128 really good option. I've newer use lookup with 2d array .
    One remark , the formula work only if one of 6 values positive. This is restriction.
    and it could shorter
    Please Login or Register  to view this content.
    or decrease calculation array
    Please Login or Register  to view this content.
    Last edited by BMV; 12-26-2020 at 02:44 PM.

  8. #8
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,420

    Re: How to find the maximum value of the last 6 consecutive days without spaces?

    BMV You also performed very well, come on together

  9. #9
    Forum Contributor
    Join Date
    09-01-2020
    Location
    bangladesh
    MS-Off Ver
    office 2007
    Posts
    167

    Re: How to find the maximum value of the last 6 consecutive days without spaces?

    wk9128 and BMV , Both are too good, you can use functions as magic, and there are many changes

  10. #10
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,420

    Re: How to find the maximum value of the last 6 consecutive days without spaces?

    You're Welcome and Thank You for the feedback

+ 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. How to find consecutive 3 days and 2 days particular customer is red
    By sriku in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-13-2020, 02:59 AM
  2. Finding maximum number of consecutive days
    By loumarday in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-20-2019, 11:06 AM
  3. [SOLVED] Maximum cumulative value for the consecutive 3 days of data in 1 year period
    By bennyistanto in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-26-2017, 08:43 AM
  4. Replies: 1
    Last Post: 03-20-2015, 03:56 AM
  5. How to find the maximum count of consecutive occurances in an excel range
    By manojsinha2006 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-20-2015, 03:47 AM
  6. Counting Maximum Consecutive Days
    By Delleeb in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-26-2013, 03:51 PM
  7. Replies: 2
    Last Post: 06-26-2012, 03:13 AM

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