VLOOKUP against SQL Server database - Help!

SNGLIFE

New Member
Joined
Nov 28, 2007
Messages
3
Simplified scenario:

I have column A and column B with multiple rows of variable data in the column A cells (i.e. account numbers). I want to return a value to the cell in column B pulled from a single SQL Server table which depends upon the value in the column A cell (i.e. account names).

It's essentially the same as a VLOOKUP against a SQL table rather than an Excel range. VLOOKUP will not work, so I am looking for other solutions.

I am using Excel 2007. I am aware of the SQL.REQUEST function as a clumsy but workable solution, but it is not supported in Excel 2007.

Anyone up to the challenge? Thanks in advance! :)
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Thanks!

I'm not a VBA guy (one of these dayz...), but it looks pretty straightforward enough for me to be able to get it to work. You wouldn't happen to have the connection string syntax for SQL Server 2005 in your back pocket, wouldja? :)

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,215,472
Messages
6,125,005
Members
449,203
Latest member
Daymo66

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