Copying varying numbers of cells from a number of spreadsheets into a Master spreadsheet

Graeme M

New Member
Joined
Apr 14, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I'm trying to pull test fault data from a number of Test spreadsheets into a Master spreadsheet. The starting location for the data is the same (J4) in each of the test sheets and is stored in a single column but the amount of data varies (but is known and stored at H3). eg Test QA5 has 3 entries that I want to copy over and Test QA6 has 13 entries. In each of the TEST QA files, the number of entries I need copied to the Master is stored at H3 and the entries are from J4 to Jx (where x depends on the number of entries). If it helps, the remaining data in column J is blank. Example below is Test QA6. Many thanks.
Excel fault history.PNG
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi and welcome to MrExcel.

If in the master file, in cell H3 you have the number 2, then you want 2 entries from Q5 and 2 entries from Q6, something like this:

Libro3
AHIJKL
1
2
32
41<-- from Test QA5
52<-- from Test QA5
61<-- from Test QA6
71<-- from Test QA6
8
Master



Do you want the solution with VBA?
 
Upvote 0
Thank you DanteAmor, I found a rather inelegant way of doing it, on the basis that any cells below those of interest were blank - see my Master s/s below. I'm not familiar with VBA but if it offers a better solution then I guess I need to get familiar with it!
Image of Master.PNG
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,423
Members
448,961
Latest member
nzskater

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