Click here to Skip to main content
15,894,180 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi . I have Excel as follows:
I want to get the information as below on the main page, and link it by class on the next pages. I do not know if I should create a form or a button or something.
Also, the class column should be a drop-down list.
Can you help me how to solve this problem?

Album — Postimages[^]

What I have tried:

I did a Google search but did not find any results
Posted
Updated 11-Feb-21 5:53am
v2
Comments
Richard MacCutchan 11-Feb-21 11:39am    
You can use a macro in Excel. Select the range of items from the first page and paste a formula in the pages where you want it.

1 solution

Here is Microsoft's instruction page for creating a drop down list in an Excel spreadsheet - Create a drop-down list - Office Support[^]

As for getting the data onto the other pages you have several options

Most up to date and advocated by Microsoft is to use Power Query to filter your data - see Power Query documentation | Microsoft Docs[^]. All you would need here is to instruct your user to use the existing "Refresh All" button on the ribbon (or you could auto refresh everytime the sheet is selected by using a macro on each sheet's Worksheet_Activate() event

Or you could use filtered Pivot tables - see Get started with Power Pivot in Microsoft Excel - Excel[^]

Alternatively, you could write a macro (or VBA) to filter the original data and "copy" it to the other sheets. Don't use Copy + Paste which is what you will get if you record the macro use the Range.Copy [Target] method instead.

Alternatively, you could use formulae to carry over the values only if the class column matches a fixed value.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900