Pulling data from 2 spreadsheets into new rows

b19upj

New Member
Joined
Oct 3, 2014
Messages
34
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have 2 spreadsheets.
I want the information contained in the first spreadsheet inserted as new rows in the second spreadsheet where a certain condition is met.
The added complexity to this is the first spreadsheet may have more than one row to add to the second row.
An example is this: Column G contains a 'Grouping Ref'. The first few rows look like this
Grouping Ref
30
30
20
30
30
20
30
30
20
41
41
41
41
41
34
34
35
34
34

<colgroup><col></colgroup><tbody>
</tbody>

On my first spreadsheet column J is 'Grouping Ref'. The first few rows are:
Grouping Ref
30
30
30
31
32
33
33
34
41
41
41
41
41
41
34
34
35
34
34

<colgroup><col></colgroup><tbody>
</tbody>

How can i get the second spreadsheet to look up the first one for a grouping ref match, then add the number of rows in it depending on how many rows are associated with that grouping ref number on the first spreadsheet.
Once it has matched it and added the rows, it would need to replicate the information from the above row which had the matched group ref, but in the last column (L) add the text in column B of the first spreadsheet.

I hope that makes sense.

TIA
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Forum statistics

Threads
1,215,427
Messages
6,124,830
Members
449,190
Latest member
rscraig11

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