Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default Query SQL Server from Excel

I'm wondering how best to achieve this -- I have an INSERT INTO statement
which exports data from my Excel worksheet to SQL Server, but I'm not sure
how I can query/retrieve this data from SQL Server, and have it populate the
EXACT cell from which it originated.

For example --
--- On one worksheet, I enter data (or select an item data from a drop-down
menu)
--- then on another worksheet, I present the data in cells based on
conditional =IF formulas [=IF('Products'!G14="No Account","Sample
Customer",'Products'!G14)], and perform some calculations using additional
=IF formulas [=IF(H170,H17*B17,G17*0.8)]
--- Finally, on an additional worksheet, I render the data which will be
pushed to SQL Server with conditional =IF formulas such as
[=IF(Configurator!D48=TRUE,"Generic","No Product")]

I went here and read Chip Pearson and Dave Peterson's comments on the
ability to delete data without deleting the formula:
http://www.eggheadcafe.com/software/...n-formula.aspx

Is there a way that I can retrieve data from SQL Server and present it in
it's original location on an Excel worksheet to perform additional
calculations/analysis?

Thanks in advance for all advice and suggestions


  #2   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,173
Default Query SQL Server from Excel

Maybe the SQL.REQUEST worksheet function from the XLODBC.xla add-in would
help. Look it up in help

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Doctorjones_md" wrote in message
...
I'm wondering how best to achieve this -- I have an INSERT INTO statement
which exports data from my Excel worksheet to SQL Server, but I'm not sure
how I can query/retrieve this data from SQL Server, and have it populate
the EXACT cell from which it originated.

For example --
--- On one worksheet, I enter data (or select an item data from a
drop-down menu)
--- then on another worksheet, I present the data in cells based on
conditional =IF formulas [=IF('Products'!G14="No Account","Sample
Customer",'Products'!G14)], and perform some calculations using additional
=IF formulas [=IF(H170,H17*B17,G17*0.8)]
--- Finally, on an additional worksheet, I render the data which will be
pushed to SQL Server with conditional =IF formulas such as
[=IF(Configurator!D48=TRUE,"Generic","No Product")]

I went here and read Chip Pearson and Dave Peterson's comments on the
ability to delete data without deleting the formula:
http://www.eggheadcafe.com/software/...n-formula.aspx

Is there a way that I can retrieve data from SQL Server and present it in
it's original location on an Excel worksheet to perform additional
calculations/analysis?

Thanks in advance for all advice and suggestions


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
access query reports to excel formatting help fastmike New Users to Excel 1 July 25th 06 03:45 PM
Using A Cell In Excel as Criteria for a Query charles Excel Discussion (Misc queries) 2 July 14th 06 05:06 PM
MS Query - unable to edit query Excel GuRu Excel Discussion (Misc queries) 9 April 12th 06 04:29 PM
AHHHH-Get Data from Multiple Excel workbooks JAA149 Excel Discussion (Misc queries) 5 October 30th 05 05:19 PM
Error message in Excel after exporting Access query to Excel Romi Excel Discussion (Misc queries) 0 June 6th 05 02:53 PM


All times are GMT +1. The time now is 05:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"