Is PivotTable the best solution for my problem?

fapb48

Board Regular
Joined
Sep 13, 2020
Messages
65
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

I have a spreadsheet that registers all Active Hardware Assets in our company.

I have two sheets. One for computers and the other one for other hardware (monitors, docking stations, printers, etc)

I want to be able to view in a separate sheet what hardware each individual user has.

I thought in creating a pivot table to link to both tables.. Currently my pivot table is filtering in the following order: Departments, Assigned to and Computer Name.

I want to be able to now incorporate the other hardware sheet into this pivot table, but it duplicates all the contents on that sheet into the pivot table instead of having a relationship of assigning all hardware to a specific name?

I wonder if a pivot table is actually useful for this situation (and if there is, what am i missing) or should i think about other options to have the end result that i require?

Thank you
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Suggest you post using XL2BB, sample data (dummy) which is representative of your actual data. Mock up your solution for the data presented.
 
Upvote 0
PC Sheet
Make and ModelComputer NameAsset NumberOSWindows 11 CompatabilityPC/LPTRAMWarranty Start DateWarranty Expiry DateWarranty PeriodWarranty StatusAgeAssigned toDepartment
Lenovo ThinkPad E15 Gen 4LPT000770770Windows 11 ProN/ALPT1625/01/202324/01/20240Warranty0DaveIT & Ops
Lenovo Essential B50-70PC000676945Windows 10 ProNoLPT807/08/201405/10/20151Expired8BiancaProcurement
Yoga 510-14ISK Laptop (ideapad) - Type 80S7LPT000771505Windows 10 ProNoLPT818/07/201615/09/20171Expired6RichardIT & Ops
Yoga 510-14ISK Laptop (ideapad) - Type 80S7 PC000677594Windows 10 ProNoLPT802/01/201702/01/20181Expired6SpareIT & Ops
HP 250 G6 Notebook PCLPT000772667Windows 10 ProNoLPT811/12/201809/01/20201Expired4SpareIT & Ops
Yoga 510-14ISK Laptop (ideapad) - Type 80S7PC00067888Windows 10 ProNoLPT801/03/201728/02/20180Expired5SpareIT & Ops
HP ProDesk 400 G5 Microtower PCLPT000773588Windows 10 ProYesPC807/05/201906/05/20201Expired3DarrenSales
ThinkBook 14-IIL Laptop - Type 20SLPC000679712Windows 11 ProN/ALPT828/01/202127/01/20220Expired2GeorgeSales
Lenovo ThinkCentre M70q Gen 2LPT000774675Windows 11 ProN/APC1611/08/202210/08/20253Warranty0Hot DeskIT & Ops
Lenovo E495 (Type 20NE) Laptop (ThinkPad)PC000680970Windows 10 ProYesLPT1606/03/202005/03/20210Expired2SpareIT & Ops
HP ProDesk 400 G4 SFF LPT00077557Windows 10 ProNoPC824/09/201723/10/20181Expired5VmwareIT & Ops
Lenovo ThinkCentre M70q Gen 2PC000681774Windows 11 ProN/APC811/08/202210/08/20253Warranty0Hot DeskIT & Ops
Lenovo V530-15ICB 10TV0024UKLPT000776941Windows 10 ProYesPC14/05/201913/05/20201Expired3MorganIT & Ops
HP ProDesk 400 G4 SFF PC000682101Windows 10 ProNoPC1619/12/201717/01/20191Expired5TrainingMeeting Room
E14 (Type 20RA, 20RB) Laptop (ThinkPad)LPT000777786Windows 11 ProN/ALPT801/10/202001/09/20210Expired2NatalieHR
HP ProDesk 400 G4 SFF PC000683782Windows 10 ProNoPC819/03/201817/04/20191Expired4AstonMeeting Room
HP 290 G1 SFF BusinessLPT000778881Windows 10 ProYesPC829/08/201828/08/20190Expired4LotusMeeting Room



Other Hardware Sheet
Device TypeAsset NumberMakeModelMACIMEIAssigned toDepartment
Monitor269AOC e2250SwaMorganIT & Ops
Monitor270AOC e2250SwaBiancaProcurement
Docking Station773LenovoThinkPad Hybrid USB-C with USB-A Dock - Type 40AFMorganIT & Ops
Docking Station774LenovoThinkPad Hybrid USB-C with USB-A Dock - Type 40AFBiancaProcurement



Pivot Table Output
Row Labels
(blank)
(blank)
(blank)
Docking Station
Monitor
HR
Natalie
LPT000777
Docking Station
Monitor
IT & Ops
Dave
LPT000770
Docking Station
Monitor
Hot Desk
LPT000774
Docking Station
Monitor
PC000681
Docking Station
Monitor
Morgan
LPT000776
Docking Station
Monitor
Richard
LPT000771
Docking Station
Monitor
Spare
LPT000772
Docking Station
Monitor
PC000677
Docking Station
Monitor
PC000678
Docking Station
Monitor
PC000680
Docking Station
Monitor



So as you can see, other hardware sheet has only 2 names assigned against hardware but the pivot table is assigned them all against all users
 
Upvote 0
Suggest you post using XL2BB, sample data (dummy) which is representative of your actual data. Mock up your solution for the data presented.
Do you happen to have a better idea for my issue above?
 
Upvote 0
To be sure, the common field is the asset number. Is this true?
 
Upvote 0
Load each table into the Power Query Editor and then perform a left Outer Join on the Assigned to and Department as shown below

Power Query:
let
    Source = Table.NestedJoin(Table2, {"Assigned to", "Department"}, Table3, {"Assigned to", "Department"}, "Table3", JoinKind.LeftOuter),
    #"Expanded Table3" = Table.ExpandTableColumn(Source, "Table3", {"Device Type", "Asset Number", "Make", "Model", "Column1", "Column2", "MAC", "IMEI"}, {"Device Type", "Asset Number.1", "Make", "Model", "Column1.1", "Column2.1", "MAC", "IMEI"})
in
    #"Expanded Table3"
 
Upvote 0
Load each table into the Power Query Editor and then perform a left Outer Join on the Assigned to and Department as shown below

Power Query:
let
    Source = Table.NestedJoin(Table2, {"Assigned to", "Department"}, Table3, {"Assigned to", "Department"}, "Table3", JoinKind.LeftOuter),
    #"Expanded Table3" = Table.ExpandTableColumn(Source, "Table3", {"Device Type", "Asset Number", "Make", "Model", "Column1", "Column2", "MAC", "IMEI"}, {"Device Type", "Asset Number.1", "Make", "Model", "Column1.1", "Column2.1", "MAC", "IMEI"})
in
    #"Expanded Table3"
Apologies for the delayed response but it worked perfectly!
Thank you very much for your help
 
Upvote 0

Forum statistics

Threads
1,214,967
Messages
6,122,503
Members
449,090
Latest member
RandomExceller01

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