Xlookup to with multiple conditions

zinah

Active Member
Joined
Nov 28, 2018
Messages
368
Office Version
  1. 365
Platform
  1. Windows
Hi,

I use Xlookup to get the dates for my details tab. However, I need to refine the formula to get only today and any future dates, without getting old dates or even the dates that is formatted as 1/0/1900. Below is my sample data along with the formula that I'm using. Is there any suggestion to refine my formula to get the desired results?
Thanks!

Xlookup Help with dates criteria.xlsx
ABCDEFGHIJKLMNO
1Current ResultDesired ResultsIDsDates
2IDsNameDatesIDsNameDatesAAA
3AAAJohn10/3/2024AAAJohn10/3/2024BBB3/3/2024
4BBBWill9/3/2024BBBWill9/3/2024CCC9/7/2024
5CCCAbbey9/7/2024CCCAbbey9/7/2024DDD########
6DDDDon11/4/2021HHHLeo5/1/2024EEE
7EEELouise1/0/1900NNNLeon3/8/2024FFF
8FFFSue1/0/1900GGG
9GGGRon1/0/1900HHH5/1/2024
10HHHLeo5/1/2024KKK
11KKKFrank1/0/1900OOO
12OOORonaldo1/0/1900NNN3/8/2024
13NNNLeon3/8/2024BBB9/3/2024
14ZZZShondha AAA########
15LLLMona1/0/1900LLL
16
17
18
19
20
Details
Cell Formulas
RangeFormula
C3:C15C3=XLOOKUP(A3,$L:$L,$M:$M,"",,-1)
 
Glad we could help & thanks for the feedback.
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,223,885
Messages
6,175,179
Members
452,615
Latest member
bogeys2birdies

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