Macro to Extract Data

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,601
Office Version
  1. 2021
Platform
  1. Windows
I would like a macro to extract data from the following workbooks excluding data from text "Total movement" onwards in Column A and data to the right of total movement onwards

for eg Br1 Parts Stock.8510145 , Br1 Parts stock.851162, Br1 Parts stock.851195 etc

The workbook will allways start with Br1 parts stock.

Once the data for the first workbook has been extracted, the data for the next workbook etc must be copied immediatekly after the last data for the previous workbook. for eg if the first workbook contains data in A1 to F600, then the next workbook must contain data from A600 onwards

I have listed the data below which must be excluded when extracting the data


Excel Workbook
ABCDE
25Total Movement***-12,437
26*****
27Sales***-216,895
28*****
29Purchases***243,183
30*****
31Other***-38,725
32*****
33Check***-12,437
34*****
Sheet1
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,224,598
Messages
6,179,822
Members
452,946
Latest member
JoseDavid

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