+ Reply to Thread
Results 1 to 8 of 8

Rolling 52 week high

Hybrid View

  1. #1
    Registered User
    Join Date
    08-14-2016
    Location
    HK
    MS-Off Ver
    2017
    Posts
    2

    Rolling 52 week high

    My formula in col_C to find rolling 52 week high returns #N/A. Any alternative formula or revised formula to find rolling 52 week high?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,861

    Re: Rolling 52 week high

    Try

    =IFERROR(INDIRECT("F"&MATCH(A251-364,A:A,0)&":F"&ROW()),"")

  3. #3
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Rolling 52 week high

    Hi,

    With sorted times in column A I believe you might use

    =MAX(INDEX(F:F,MATCH(A251-364,A:A,1)):F251,0)
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  4. #4
    Forum Contributor
    Join Date
    05-06-2016
    Location
    Cluj, Romania
    MS-Off Ver
    2007-2010
    Posts
    220

    Re: Rolling 52 week high

    or, to exclude the day older than 365 try this
    Formula: copy to clipboard
    =IFERROR(MAX(INDIRECT("F"&MATCH(A251-364,A:A,0)&":F"&ROW())),MAX((INDIRECT("F"&MATCH(A251-364,A:A,1)+1)&":F"&ROW())))
    Last edited by TudyBTH; 08-15-2016 at 06:24 AM.

  5. #5
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Rolling 52 week high

    There is no real problem with your formula, it's the data! I think your formula is failing because there are a few dates MISSING from the previous year.

    On row 6/7, you jump from 5/10/1928 to 8/10/1928. Also missing dates on rows 10/11, 15/16, and 20/21.

    When you go back 365 days to these days, you get N/A error.

    I hope this helps, please let me know!

    Regards,

    David


    - Please click on the *Add Reputation button at the bottom of helpful responses.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


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

    Re: Rolling 52 week high

    xlnitwit has nailed it, I think, by using ,1 in the MATCH TYPE option.
    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

  7. #7
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Rolling 52 week high

    Hi
    I use YEAR.ISOWEEKNUM.WEEKDAY to match data and if error a correspondent day of the past year.
    Use the formula in C251 e drag down
    Formula: copy to clipboard
    =INDEX($F$2:$F$312,IFERROR(MATCH(YEAR($A251)-1&MID(YEAR($A251)&"."&ISOWEEKNUM($A251)&"."&WEEKDAY(A251),5,5),
    INDEX(YEAR($A$2:$A$312)&"."&ISOWEEKNUM($A$2:$A$312)&"."&WEEKDAY($A$2:$A$312),0),0),MATCH(EDATE($A251,-12),$A$2:$A$312,0)))

  8. #8
    Registered User
    Join Date
    08-14-2016
    Location
    HK
    MS-Off Ver
    2017
    Posts
    2

    Re: Rolling 52 week high

    Thanks all experts. My job finished.

+ 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. [SOLVED] 2 Week Rolling Average... HELP!
    By jnswbc in forum Excel General
    Replies: 12
    Last Post: 11-10-2015, 12:46 PM
  2. [SOLVED] 2 Week Rolling Average... HELP!
    By jnswbc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-09-2015, 02:36 PM
  3. Rolling 8 week tracker
    By dkaulitz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-05-2015, 02:46 PM
  4. [SOLVED] 12 week rolling sum
    By parcs in forum Excel General
    Replies: 12
    Last Post: 07-06-2015, 01:03 PM
  5. I want to add a 16 week rolling AVG in a pivot table.
    By krisarmstrong in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-21-2014, 02:33 PM
  6. Rolling 12 week calculations?!?!?
    By ShellyB37 in forum Excel General
    Replies: 5
    Last Post: 11-10-2011, 07:34 AM
  7. Rolling working week data
    By adeleex in forum Excel General
    Replies: 3
    Last Post: 06-06-2011, 03:48 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