Excel formula to 'append' information together?

Exceliott

New Member
Joined
Jul 25, 2019
Messages
1
Hi all -

I am attempting to use Excel to find information from one table and assign it to other tables....which is normally easy....but there is a conundrum I have run across.

For example:


[TABLE="width: 0"]
<tbody>[TR]
[TD="colspan: 2"]I currently have this information:[/TD]
[/TR]
[TR]
[TD]Standard Section[/TD]
[TD]Activity[/TD]
[/TR]
[TR]
[TD]200.01-14[/TD]
[TD]627[/TD]
[/TR]
[TR]
[TD]200.15-17[/TD]
[TD]644[/TD]
[/TR]
[TR]
[TD]200.15-17[/TD]
[TD]1098[/TD]
[/TR]
[TR]
[TD]200.15-17[/TD]
[TD]1099[/TD]
[/TR]
[TR]
[TD]200.15-17[/TD]
[TD]788[/TD]
[/TR]
[TR]
[TD]200.18[/TD]
[TD]628[/TD]
[/TR]
</tbody>[/TABLE]





[TABLE="width: 0"]
<tbody>[TR]
[TD]Separately, I also currently have this info:[/TD]
[/TR]
[TR]
[TD]Standard Section[/TD]
[/TR]
[TR]
[TD]200.01-14[/TD]
[/TR]
[TR]
[TD]200.01-14[/TD]
[/TR]
[TR]
[TD]200.01-14[/TD]
[/TR]
[TR]
[TD]200.01-14[/TD]
[/TR]
[TR]
[TD]200.15-17[/TD]
[/TR]
[TR]
[TD]200.15-17[/TD]
[/TR]
[TR]
[TD]200.15-17[/TD]
[/TR]
[TR]
[TD]200.18[/TD]
[/TR]
[TR]
[TD]200.18[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="width: 0"]
<tbody>[TR]
[TD="colspan: 5"]I am attempting to do something like this (Using the rows from Table 2, but assign the 'Activity' numbers from Table 1):

[/TD]
[/TR]
[TR]
[TD]Standard Section[/TD]
[TD="colspan: 4"]Activity[/TD]
[/TR]
[TR]
[TD]200.01-14[/TD]
[TD]627[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]200.01-14[/TD]
[TD]627[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]200.01-14[/TD]
[TD]627[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]200.01-14[/TD]
[TD]627[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]200.15-17[/TD]
[TD]644; 1098; 1099; 788[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]200.15-17[/TD]
[TD] - "Or the 'Activity' Numbers could be in separate columns…and that would be ok....similar to the below"[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]200.15-17[/TD]
[TD]644[/TD]
[TD]1098[/TD]
[TD]1099[/TD]
[TD]788[/TD]
[/TR]
[TR]
[TD]200.18[/TD]
[TD]628[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]200.18[/TD]
[TD]628[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]




Essentially I am trying to pull information from one table and assign it to a second table. But, there are multiple 'Activity' numbers in Table 1 within a particular 'Standard Section'.

I attempted within MS Access, but the primary key problem halted me, as the two tables may have duplicate fields of what could be the primary key.


Any help is greatly appreciated. Thanks in advance.

Eliott
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Welcome to the MrExcel board!

See if this is any use. Table below in columns A:B is "Table1" while "Table2" is in columns E:F

Enter the shown formula in F2 & it should fill down the table.
It is an array formula so should be entered without the {} but confirmed with Ctrl+Shift+Enter, not just Enter. If confirmed correctly, Excel will insert the {}.

Excel Workbook
ABCDEF
1Standard SectionActivityStandard SectionActivity
2200.01-14627200.01-14,Table1,&quot;&quot;))}]627
3200.15-17644200.01-14627
4200.15-171098200.01-14627
5200.15-171099200.01-14627
6200.15-17788200.15-17644; 1098; 1099; 788
7200.18628200.15-17644; 1098; 1099; 788
8200.15-17644; 1098; 1099; 788
9200.18628
10200.18628
11
Lookup
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

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