Pivot Table driving me Crazy

Mehmood

New Member
Joined
Sep 9, 2021
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
I have 2 Table as in picture attached.
Relationship with employee ID and Employee ID in both table
When I put employee Name in Rows
Safety Courses in column
And want to have Expiry Date of that course in Value section. But its is showing count of that course in Value instead of showing of Expiry..

H2S appearing 3 time in Safety Course's Column it is showing 3 in pivot table.

But I want to have expiry Date corresponding to Employee Name & Safety Course
 

Attachments

  • Employee Table.png
    Employee Table.png
    5.1 KB · Views: 6
  • Safety Courses.png
    Safety Courses.png
    6.3 KB · Views: 6
  • Pivot table.png
    Pivot table.png
    5 KB · Views: 5

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Will you post your sample data as XL2BB so that we don;t have to recreate your information to provide you with a solution.
 
Upvote 0
First Exercise.xlsx
ABCDEFG
1EmployeeIDEmployee NameNationalityDept.GradeCategoryZip
21Naveed Ul-HassanPakCord14DS75350
32Mahmoud Awad IshakEgyptCord14DS
43Ajit NairIndiaCord13DS
54Lyes BenarabAlgeriaSD13DS
65Abdul ShukkoorindiaTDDS
76Praveen TharakanindiaA.MecDS
Employee



Employee IDSafety CourseTakenExpiry
1H2S4-Nov-203-Nov-22
2Fire Fighting17-Jun-2116-Jun-23
3Huet2-Sep-211-Sep-23
4Basic Rigging 23-Dec-2022-Dec-22
5Fire Fighting24-Nov-2023-Nov-22
6SCBA24-Aug-2123-Aug-23
 
Upvote 0
If the following is what you are expecting for results, since you did not show us any, then you can use Power Query and do a join of the two tables using the EE ID as a common field.

Book1
ABCDEFGHI
10EmployeeIDEmployee NameNationalityDept.GradeCategoryZipTable2.Safety CourseTable2.Expiry
111Naveed Ul-HassanPakCord14DS75350H2S11/3/2022
122Mahmoud Awad IshakEgyptCord14DSFire Fighting6/16/2023
133Ajit NairIndiaCord13DSHuet9/1/2023
144Lyes BenarabAlgeriaSD13DSBasic Rigging 12/22/2022
155Abdul ShukkoorindiaTDDSFire Fighting11/23/2022
166Praveen TharakanindiaA.MecDSSCBA8/23/2023
Sheet1
 
Upvote 0
Actually I want to have result as blew. Date Could be Expiry Date or Taken Date.

Employee IDH2SFire FightingHuetBasic Rigging Fire FightingSCBA
Abdul Shukkoor4-Nov-203-Nov-223-Nov-223-Nov-223-Nov-223-Nov-22
Ahmed Bakr17-Jun-2116-Jun-2316-Jun-2316-Jun-2316-Jun-2316-Jun-23
Ahmed Hamdi2-Sep-211-Sep-231-Sep-231-Sep-231-Sep-231-Sep-23
Ahmed Mostafa 23-Dec-2022-Dec-2222-Dec-2222-Dec-2222-Dec-2222-Dec-22
Ajit Nair24-Nov-2023-Nov-2223-Nov-2223-Nov-2223-Nov-2223-Nov-22
 
Upvote 0
Actually I want to have result as blew. Date Could be Expiry Date or Taken Date. I could also be filtered like want to check whose course expiring on this month.

Employee IDH2SFire FightingHuetBasic Rigging Fire FightingSCBA
Abdul Shukkoor4-Nov-203-Nov-223-Nov-223-Nov-223-Nov-223-Nov-22
Ahmed Bakr17-Jun-2116-Jun-2316-Jun-2316-Jun-2316-Jun-2316-Jun-23
Ahmed Hamdi2-Sep-211-Sep-231-Sep-231-Sep-231-Sep-231-Sep-23
Ahmed Mostafa 23-Dec-2022-Dec-2222-Dec-2222-Dec-2222-Dec-2222-Dec-22
Ajit Nair24-Nov-2023-Nov-2223-Nov-2223-Nov-2223-Nov-2223-Nov-22
 
Upvote 0
Your response makes no sense to me. Why are you showing Blue and non colored if only you want Blue.
 
Upvote 0

Forum statistics

Threads
1,215,096
Messages
6,123,074
Members
449,093
Latest member
ripvw

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