Need Help: How to create macro for hyperlink and filter data on another sheet.

flomed

New Member
Joined
Apr 1, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Need help with the macro please. Whenever, I click on those numbers in the Summary tab, like E6 (with value of -1), it will link me to the Raw Data sheet and then filtered the data show in image 3 (where it filtered column B, C and D) with this I would be able to see who is the employee for the said variance.

Image 1
HeadCount Audit.xlsm
ABCDE
4
5SupervisorHC - Active EmployeeResigned EmployeeOther Source ActiveVariance HC vs Other Source
6Leo223-1
7Patrick5041
8Total727
9
10
11
Summary
Cell Formulas
RangeFormula
B6:B7B6=COUNTIFS('Raw Data'!$B:$B,Summary!$A6,'Raw Data'!$C:$C,"Active")
C6:C7C6=COUNTIFS('Raw Data'!$B:$B,Summary!$A6,'Raw Data'!$C:$C,"Resigned")
D6:D7D6=COUNTIFS('Raw Data'!$B:$B,Summary!$A6,'Raw Data'!$D:$D,"Active")
E6:E7E6=B6-D6
B8:D8B8=SUM(B6:B7)



Image 2
HeadCount Audit.xlsm
ABCD
1Employee NameSupervisorStatusOther Source File
2AndreaLeoActiveActive
3ClairLeoActiveActive
4MikeLeoResignedResigned
5TomLeoResignedActive
6JordanPatrickActiveActive
7MichellePatrickActiveActive
8SamanthaPatrickActiveResigned
9SarahPatrickActiveActive
10DanielPatrickActiveActive
Raw Data



Image 3
HeadCount Audit.xlsm
ABCD
1Employee NameSupervisorStatusOther Source File
2AndreaLeoActiveActive
3ClairLeoActiveActive
5TomLeoResignedActive
11
12
13
14
15
Raw Data
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,214,653
Messages
6,120,752
Members
448,989
Latest member
mariah3

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