PWM16

asked on

# Code to Import Data from Workbook to Workbook- Excel 2010

ASKER

Hi Ejgil

Thanks for the reply.

Given the data in CDR Cols A : BN is updated daily ie cleared and new data brought in I think it will be okay to use formulas as you have done here.

I doubt the maximum number of rows required would ever exceed 1400 so it is not a huge workload for the Workbook.

I like your idea of placing the UKDR sheet in the CDR file itself so I will place a sheet and the data in the CDR file and upload it again. The data in the UKDR sheet will also be cleared and updated daily.

Phil

CDR--1-.xlsm

Thanks for the reply.

Given the data in CDR Cols A : BN is updated daily ie cleared and new data brought in I think it will be okay to use formulas as you have done here.

I doubt the maximum number of rows required would ever exceed 1400 so it is not a huge workload for the Workbook.

I like your idea of placing the UKDR sheet in the CDR file itself so I will place a sheet and the data in the CDR file and upload it again. The data in the UKDR sheet will also be cleared and updated daily.

Phil

CDR--1-.xlsm

ASKER CERTIFIED SOLUTION

membership

This solution is only available to members.

To access this solution, you must be a member of Experts Exchange.

ASKER

Many thanks Ejgil.

The advice and formulas provided will enable me to continue with my project.

Cheers

Phil

The advice and formulas provided will enable me to continue with my project.

Cheers

Phil

See workbook.

The used path should automatically adjust, as long as both workbooks are in the same folder.

It will also work with the UKDR workbook closed, but faster when open.

I have set it to use 200 rows in UKDR.

If there are many rows in UKDR, calculation speed can be improved by making a column for the row specification, so the row search in UKDR is only done once per row in CDR.

But

Then it would be much better to import the csv file into a sheet in the CDR workbook, and then reference the imported range in the formulas.

Excel automatically adjust ranges in formulas when new data is imported.

Upload a csv file and I will set up the import and the formulas, if you want that.

CDR.xlsm