Row auto population based on value selected in drop down

webmunky

New Member
Joined
Apr 17, 2018
Messages
1
Hi all,

New here and pretty new to Excel formulas and VBA, so bear with me...

when I select a value from a drop down in column B on sheet 1 I need a lookup to a table in sheet 2 to loop through the table and set all the rows on sheet 1 where A1 matches in sheet 2 A1. the number of rows can change so for example in the below tables, I manually select "Incident_Problem" in table 1 column 1, I need the values from table 2 populating as they appear in table 2, in table 1.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Incident_Problem[/TD]
[TD]Incident User[/TD]
[TD]Floating[/TD]
[TD]Application[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="width: 500"]
<tbody>[TR]
[TD]Incident_Problem[/TD]
[TD]Incident User[/TD]
[TD]Floating[/TD]
[TD]Application[/TD]
[/TR]
[TR]
[TD]Incident_Problem[/TD]
[TD]Problem User[/TD]
[TD]Floating[/TD]
[TD]Application[/TD]
[/TR]
[TR]
[TD]Incident_Problem[/TD]
[TD]SR User[/TD]
[TD]Floating[/TD]
[TD]Application[/TD]
[/TR]
[TR]
[/TR]
[TR]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

The data in table 2 will change look more like this:

[TABLE="width: 500"]
<tbody>[TR]
[TD]Incident_Problem[/TD]
[TD]Incident User[/TD]
[TD]Floating[/TD]
[TD]Application[/TD]
[/TR]
[TR]
[TD]Incident_Problem[/TD]
[TD]Problem User[/TD]
[TD]Floating[/TD]
[TD]Application[/TD]
[/TR]
[TR]
[TD]Incident_Problem[/TD]
[TD]SR User[/TD]
[TD]Not Applicable[/TD]
[TD]Application[/TD]
[/TR]
[TR]
[TD]Incident_Problem_Lead[/TD]
[TD]Incident Master[/TD]
[TD]Floating[/TD]
[TD]Application[/TD]
[/TR]
[TR]
[TD]Incident_Problem_Lead[/TD]
[TD]Problem Master[/TD]
[TD]Floating[/TD]
[TD]Application[/TD]
[/TR]
[TR]
[TD]Incident_Problem_Lead[/TD]
[TD]SR User[/TD]
[TD]Not Applicable[/TD]
[TD]Application[/TD]
[/TR]
[TR]
[TD]Change_Asset[/TD]
[TD]Change User[/TD]
[TD]Floating[/TD]
[TD]Application[/TD]
[/TR]
[TR]
[TD]Change_Asset[/TD]
[TD]Asset User[/TD]
[TD]Not Applicable[/TD]
[TD]Application[/TD]
[/TR]
</tbody>[/TABLE]

So I need the lookup to do the loop / count, and auto populate the number of rows for each value:
select Incident_Problem & it creates 3 rows of data, select Change_Asset & it creates 2.

I also need it to be repeatable down the spreadsheet - there will be multiple selections of the same value.

Hope that makes sense & is possible!

Thanks
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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