Generate rows based on data in another worksheet


New Member
May 12, 2011
I am an Excel noob and have been given a project in excel .... one thing I am struggling with is how to have a list of current employees populate in (for example) Sheet A based on a dynamic list from Sheet B.

so, this is what Sheet A would look like:

<employee 1, group A> <title> <other data>
<employee 2, group A> <title> <other data>
<employee 3, group A> <title> <other data>
<employee 1, group B><title> <other data>
<employee 2, group B> <title> <other data>
<employee 3, group B> <title> <other data>
<employee 1, group C> <title> <other data>
<employee 2, group C> <title> <other data>
<employee 1, group D> <title> <other data>
<employee 2, group D> <title> <other data>

and Sheet B:
<Group A> <Group B> <Group C> etc
<employee 1><title> <employee 1><title> <employee 1><title>
<employee 2><title> <employee 2><title> <employee 2><title>
<employee 3><title> <employee 3><title> <employee 3><title>

if I added a third employee to sheet B (in red, above), I need sheet A to automatically insert a row beneath <employee 2, group C><title><other data>

I have looked at naming a range/dynamic ranges but I'm not understanding exactly how to do them or if naming a range would solve this problem.

Hoping that makes sense - thanks in advance for the help!


New Member
May 12, 2011
I'm sorry, I'm not sure why the rest of my message isn't showing up.

Sheet A is something like:

Group A
employee 1, title
e2, t
e3, t
e1, t
e2, t
Group C
e1, t
e2, t
e3, t

and sheet B would be

Group A Group B Group C
list name, list title etc etc
etc etc etc

If I enter a new employee into Group B on Sheet B, I would like sheet A to insert a row for a third employee in group B.

I have looked at naming ranges and dynamic ranges but am not understanding the instructions, nor am I certain these will work to fix this problem.

Thanks for the help!

Forum statistics

Latest member

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...