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?![]()
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?![]()
Try
=IFERROR(INDIRECT("F"&MATCH(A251-364,A:A,0)&":F"&ROW()),"")
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.
or, to exclude the day older than 365 try this
Formula:
=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.
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".
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
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:
=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)))
Thanks all experts. My job finished.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks