I'm trying to filter worksheet 2 data based on worksheet 1 data in same workbook(MS Excel). Here is my requirement, I have data in first worksheet which contains 100 records and it has employee Id as a key but this sheet will contain data related to employee personal information such as name, age. However, second sheet will contain more information of that particular employee such as experience details. So, I would like to provide user a functionality that user clicks on employee ID then it will redirect to another sheet with filtered data.
Below is the sample data which will be available in two different sheets in same workbook:
Sheet 1:
Name | Employee ID | Age | Sex |
ABC | 123 | 23 | M |
BCD | 234 | 25 | F |
Sheet 2:
Employee ID | Previous Company | Exp
123 | Ace | 4
123 | Tech | 5
234 | Ace | 4
If I clicks on 123 in sheet 1 then it should redirects me to sheet 2 and filters the 123 records only.
If anyone knows the answer then please reply soon as I need to build this functionality by Java code. But, before starting the code I should know whether it is possible by excel or not.