New Columns - Group By

micky007

New Member
Joined
Sep 14, 2016
Messages
6
Hi,



I'm in need of some help please. I'm trying to do a stock report for different depots so i can see which depot has what available in stock. At the moment i have a CSV file with all the data like the below:



DepotIDAvailableProduct
12341Coca-Cola 330ml
12340Dr Pepper 500ml
12340Fanta 330ml
12341Monster Energy 500ml
12341Sprite 500ml


What I'd like is to have just the 1 row (for each DepotID) and then a column for each product with the value 0 or 1.



0 means not available

1 means it is available



How do i go about doing this?



Thank you for your help in advance!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
a pivot table should help with that

See below , do you know pivot tables ?
Also add the version of Excel you have , as that version will also make a difference to what functions are available
pivot tables are in old versions of excel anyway - But some new functions are NOT

Book4
ABCDEFGHIJKLM
1DepotIDAvailableProduct
212341Coca-Cola 330mlSum of AvailableColumn Labels
312340Dr Pepper 500mlRow LabelsCoca-Cola 330mlDr Pepper 500mlFanta 330mlMonster Energy 500mlSprite 500mlGrand Total
412340Fanta 330ml1234100113
512341Monster Energy 500mlGrand Total100113
612341Sprite 500ml
Sheet1
 
Upvote 0
Hi,

Thanks for your response, I'm wanting to do this in Power BI as the excel file has too many rows to open the full file. Otherwise I'd of done as you mentioned :-)
 
Upvote 0
sorry, i didnt notice the forum , and i'm on a Mac and excel does not have Power Bi yet
 
Upvote 0

Forum statistics

Threads
1,223,714
Messages
6,174,058
Members
452,542
Latest member
Bricklin

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