Issue with using MATCH to find date earlier than specific date in table

Sprucie

New Member
Joined
Oct 7, 2016
Messages
6
I am using the following formula in excel and it is returning an N/A error when I try to use it - I have tried to find out the solution to why this is happening but I have no ideas anymore!

The formula is:

Code:
=INDEX(Table3[DATE],MATCH(J12,Table3[DATE],1))

The Table3 DATE column has dates ranging from 04/10/16 back to 12/09/16, and the date within J12 is 26/09/16. I believe my formula should be looking for a date earlier than 26/09/16 within the DATE column, which as stated above there are, but instead it returns with an N/A error. Can you please point me to the issue?

Many thanks in advance,

Sprucie
 
From the date column image it appears to me that your dates are not arranged in ascending order (oldest date to newest date). They seem to be in descending order. Try sorting them ascending - that's what the form of MATCH you are using requires.

I'm an idiot, that has solved it thank you!
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
I'm an idiot, that has solved it thank you!
You are welcome. This is a good example of why posting some sample data in the original post can expedite finding a solution. Had that happened here we would have ended the thread at post #2. :)
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top