Connection Data

NPandelos

New Member
Joined
May 3, 2022
Messages
16
Office Version
  1. 365
I'm having an issue with a connection to an outside database. I used a Legacy Wizard- from Microsoft Query (Legacy) to pull in data from our ERP system. The data I pull in is fine, the issue I am having is my Xlookup is not finding a specific set of numbers.
Below are the numbers in question. This is coming from the connection data.

1.jpg


My xlook up is not recognizing any of them

2.jpg


It isn't until I put the curser in a cell then hit "Enter" the formula will recognize it and it does this shift in the cell.

3.jpg


4.jpg


As soon as I refresh the data it reverts back.

5.jpg


I have been racking my brain trying to figure out what is going on. Any ideas?
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi NPandelos,

In Excel numbers are naturally right aligned and text (strings) are left aligned so Excel is regarding the stock code reference as a string. This is presumably because the field in the Db is set as text.

See if using the VALUE function helps like I have done in the following example (you will obviously have to change the ranges to suit your data):

=XLOOKUP(VALUE(H4),B5:B9,E5:E9)

Regards,

Robert
 
Upvote 0
Solution

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

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