Creating a new table from data in another table (and auto entry upon modification)

holaexcel

New Member
Joined
Sep 11, 2014
Messages
1
Hello everyone,

This is a great forum for learning and eventually helping out others :)

I started using Excel recently and I'm familiar with the basics. I have a sheet like this:

Main Table:
StudentId, Section, StudentName, Address, Phone, Email, ElectiveList, ....

Each entry in this table is unique - different student Id, however there are limited 'Sections' - let's say possible values are "A" "B" "C".

Based on this table I'd like to generate a new table for all students in Section = "A"

StudentName, Email, Phone

_and_ importantly , whenever the Main Table is modified - new student added, the generated table should have a row inserted with appropriate data (Name, Email, Phone) _if_ student added is in Section "A".

I can do this if table was static. Sort/filter on sections, then copy paste certain columns elsewhere. But the table is in flux all the time - entries are added and deleted from the Main Table.

Example
StudentId, Section, StudentName, Address, Phone, Email, ElectiveList, ....
1, A, Test1, Addr1, 111-111-1111, one@school.edu, None
2, B, Test2, Addr2, 222-222-2222, two@school.edu, None
3, A, Test3, Addr3, 333-333-3333, three@schoo.edu, None
4, C, Test4, Addr4, 444-444-4444, four@school.edu, None
5, B, Test5, Addr5, 555-555-5555, five@school.edu, None
6, A, Test6, Addr6, 666-666-6666, six@school.edu, None
7, A, Test7, Addr7, 777-777-7777, seven@school.edu, None

Other table should have (automatically populated)
StudentName, Email, Phone
Test1, 111-111-1111, one@school.edu
Test3, 333-333-3333, three@schoo.edu
Test6, 666-666-6666, six@school.edu
Test7, 777-777-7777, seven@school.edu

Now if I add a new row to Main table
8, A, Test8, Addr8, 888-888-8888, eight@school.edu, None

then automatically an entry should appear in the second table corresponding to Test8 student.

Thanks a ton. I hope the question is clear :) Any pointers would help - then I can go research it up.

regards.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
The simplest way is probably to create three (3) different Pivot Tables, each filtering by a different section. Whenever you refresh the PivotTables, they will update with all of the new information.

With any cell selected in the table, you can go to the Insert tab and select PivotTable. Paste the PivotTable in a new worksheet, and select the fields you want to see. Filter by section.
 
Upvote 0

Forum statistics

Threads
1,215,042
Messages
6,122,810
Members
449,095
Latest member
m_smith_solihull

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