Problem with Vlookup formula

Mldeuser

Well-known Member
Joined
Dec 27, 2008
Messages
573
Office Version
  1. 365
Platform
  1. Windows
Hello

I am using a vlook up formula to pull information from a data dump file (=(IF(ISNA(VLOOKUP(A4&B4,Sheet3!A:M,10,FALSE)),"",VLOOKUP(A4&B4,Sheet3!A:M,10,FALSE)))+1). The problem I have is there may be more than one row that fits, is there a way when there is more than one row that it can look at column M (date column) and use the row with the most current date.

For example I have a situation where there are six rows that fit the criteria so the formula brings back the information from the first row it finds, In this case the row I would like it to look at column M and bring back the information in the row with the most current date.

Is this possible.

Thank you
Mark
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
If the dates are in chronological order...

=LOOKUP(9.99999999999999E+307,SEARCH(A4&B4,Sheet3!A:A),Sheet3!M:M)

Why is that +1?
 
Upvote 0
The plus 1 is to add one day to the date it brings back.
 
Upvote 0

Forum statistics

Threads
1,215,008
Messages
6,122,672
Members
449,091
Latest member
peppernaut

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