Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing Excel Spreadsheets

Status
Not open for further replies.

KevinFSI

Programmer
Nov 17, 2000
582
US
When importing a spreadsheet from Excel, I want to pull in all information as long as a particular cell is not blank. For example, if cell B16 is blank, I want NO information from row16 to be imported. Is there a way to do this? Kevin
 
Kevin,

For a host of multitudes of reasons, I (almost) always do 'imports' into temporary tables. I make ALL of the fields text, so everthing will get imported. Then, I set up 'validation' through a set of queries, in most instances, these simply move any offending records into a seperate table, for additional processing (some manual review, some return to sender, some filter unwanted records). After the temporary table has been 'cleaned', I append the remaining records to the (real) target table. This general approcah should do what you want.



MichaelRed
mred@duvallgroup.com
There is never time to do it right but there is always time to do it over
 
Thanks man, that's what I'm doing now. I was hoping there was a less roundabout way, but oh well, I'll live. Thanks again. Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top