What function do I use to do a lookup in a descending array?

I have a 4-column array.  Column A contains dates in ascending order.  Column D contains numeric values in descending order.  The values in Column D descend until one row contains 0 and all subsequent rows are empty.

I need a formula to return the date from column A that is in the same row as the value 0 in column D.

I have tried using VLookup and other functions, but they all seem to require that the value I am looking for must be in column A with the value returned from some column to the right.  

To accommodate that requirement, I tried using a "ghost" column to the right of column D which has the same values as my column A.  But the second requirement is that the array has lookup values in ascending order.  Mine are in descending order.

What function (or rather, what formula) should I use?
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.

Glenn RayExcel VBA DeveloperCommented:
When you're looking for data that is to the left of your reference data, you use the combination of the INDEX and MATCH functions to get your result.

In your case, the formula to return the date in column A whose associated value in column D is zero would be:

The MATCH function looks for the first occurance of zero (0) in column D and returns position; essentially, the row number.  The INDEX function is looking in column A and returns the item in the row number found in the MATCH function.


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
wsturdevAuthor Commented:
Thanks!  I was sure it was simple, but not obvious to me!
Glenn RayExcel VBA DeveloperCommented:
Here's some references that may help:

MATCH function
INDEX function
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.