Empty fields in Excel are though case.
1. Field in Excel is empty, when there is nothing entered;
2. Field in Excel is empty for Excel sometimes, when the formula there returns an empty string. But really the field is not empty - it contains a formula!
When reading data from Excel using ODBC query, you can leave out rows with cells in certain column being really empty, like
Code:
SELECT ... FROM YourExcelTable WHERE SomeColumn Is Null
When you want to leave out rows with formala returning an empty string, the query must be like
Code:
SELECT ... FROM YourExcelTable WHERE SomeColumn <> ""
Additionally you have to take into account, that whenever ODBC Query encounters an empty cell which is not filtered out, it follows it's internal logic to decide, is it text or equivalent of number. And it also uses it's internal logic to decide, is the column text or equivalent of number. In case there will be conflict for some row between those decisions, the row is left out from result table.