Import XLS to a table

stafire_18

Board Regular
Joined
Dec 8, 2004
Messages
162
i'm trying to import a xls into a existin table. however even though there is one record in the xls document, it imports about 20 additional blank rows along with that one row containing data. there may be instances where there may be more than 1 row populated with information so setting the range in access will not work for that reason. is there a way to import rows as information is there? and not any blank rows. it's taking up a lot of cells in the table.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
There are a few different things you could do. Here are a few.

1. Delete the extra rows in Excel first before importing.

2. Dynamically set your Excel range with a macro.

3. Run a Delete Query in Access to delete lines that have a Null value in some key field.
 
Upvote 0

Forum statistics

Threads
1,214,849
Messages
6,121,922
Members
449,056
Latest member
denissimo

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