How to find latest date in a range based on another columns data

I have an excel spreadsheet.  Col A are dates,  Column N is a count of activity.  3 counts must be within in 90 days.  I am trying to make a formula to look at a range of rows to find the latest date based on the count of activity to determine when my activity will expire.  This is for a pilot who needs to make 3 take of and landings every 90 days.  So in the example below the result would be 10/30+90 days within the last 3 take off and landings - 2 on 10/30 and 1 from 11/2 - The pilot would be current to 1/28/18

Ex. A = Current until 10/30 + 90 days.  Answer - 1/28/18

11/02/17   1
10/30/17   2
07/20/17   1


Ex. B = Current until 11/2 + 90 days Answer - 1/31/18

11/02/17   3
10/30/17   2
09/20/17   1


Ex. C = Current until 9/20 + 90 days Answer - 12/1/17

 11/02/17   1
 10/30/17   1
 09/20/17   7

I can't figure out a formula to calc this based on the dates in a range and the counts in another range.
thandelAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rgonzo1971Commented:
Hi,

pls try as an array formula (Ctrl+Shift+Enter)
=INDEX(A2:A4,SUM(IF(SUBTOTAL(9,OFFSET(B2,,,ROW(B2:B4)-ROW(B2)+1))<3,1,0))+1)+90

Open in new window

Regards
EE20171103.xlsx
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
thandelAuthor Commented:
Thank you, for all the examples the value is always 10/18 which a valid date for these test dates
0
Rgonzo1971Commented:
What do you refer to?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Rgonzo1971Commented:
in my file
these are the results

C2                      G2                      K2
01/31/2018      12/19/2017      01/28/2018
0
thandelAuthor Commented:
Hmm odd, would you be able to attach your test Excel file?  Must be something I'm doing wrong.
0
Rgonzo1971Commented:
it's already in  message #a42353410 above
0
thandelAuthor Commented:
Sorry thanks, let me test with my spread sheet
0
thandelAuthor Commented:
Found the issue, working great thanks for your help, an amazing formula!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.