Lookup question

JDeiley

New Member
Joined
Sep 1, 2010
Messages
20
Good Morning,

I've got a small problem that I hope you can help me with. I have a list of clients in excel. I do a lookup based on the client number and I then populate a form based on the information found in the row that contains that client number. The formula that I use is as follows:

ClientName = Application.WorksheetFunction.Lookup(ActiveSheet.Range("A2"), Worksheets("Clients").Range("A:A"), Worksheets("Clients").Range("B:B"))

Recently someone updated the spreadsheet using a dynamic sql query linked to another database. This allows excel to always have an updated copy of the customer file in the worksheet titled "Clients". It appears that this data is in a table titled "Connection" which is the link to the database. My problem is that all my formulas that access the Clients worksheet no longer work. I am assuming that this is because the data is now in a table instead of actually being on the worksheet page in the cells.

If that is the case, can someone please explain to me how to convert the above lookup formula to access the data in the table? Your help in this matter is, as always, deeply appreciated.

Thank you,

JDeiley
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,224,574
Messages
6,179,634
Members
452,934
Latest member
Jdsonne31

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