XLOOKUP returning #N/A

onthegreen03

Board Regular
Joined
Jun 30, 2016
Messages
170
Office Version
  1. 365
Platform
  1. Windows
I am using a simple XLOOKUP function and it is returning #N/A. I think the reason is that the lookup value is a formula (referencing a date) and the lookup array is also a formula referencing dates from a different location. I am guessing it some sort of format issue because when I remove the formulas and value the dates the XLOOKUP works. In my case, the lookup value is Jan-25 and I am referencing a lookup array that has data from Jan-25 through Dec-25. I am returning data from a specific row that matches Jan-25. I checked to make sure the cell formats are the same in date cells, and they are.

Is there a way to set up a XLOOKUP to ignore the formula/format and just match the values that both formulas return? Seems like there is way around this but I can't for the life of me figure it out. Thanks for the help!
 
Never mind, I figured it out. I simply converted the values to TEXT and it worked. All good.
 
Upvote 0
Solution

Forum statistics

Threads
1,226,849
Messages
6,193,321
Members
453,790
Latest member
yassinosnoo1

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