how to show data based on 2 column data criteria

sonosite

New Member
Joined
Nov 24, 2014
Messages
15
1603747026021.png


I'm trying to create a formula that will transpose the data as above based on 2 values (I have data provided as shown on the upper half, but I need the data presented as shown on the bottom half). Person AA has 1 car, 2 bike and 3 van but person BB only has 7 SUV and 8 truck. Any advice on how to do this?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
try Power Query (Get&Transform)
personitemqtypersoncarbikevanSUVtruck
AAcar1AA123
bike2BB78
van3CC9612
BBSUV7
truck8
CCcar9
SUV12
van6

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    FillD = Table.FillDown(Source,{"person"}),
    Pivot = Table.Pivot(FillD, List.Distinct(FillD[item]), "item", "qty")
in
    Pivot
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,803
Members
449,048
Latest member
greyangel23

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