Return list of non-zeroes from 2-dim table

mporter785

New Member
Joined
Jun 14, 2022
Messages
21
Office Version
  1. 365
Platform
  1. Windows
Hi,

I would like to return a list of all non-zero values from this table and return as [[#row],[vendors]],[[#column]],count or split into three columns row,column,count which is preferred. Thanks
1660054147214.png
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Using Power Query.

Book10
ABCD
1RowVENDORSColumnValue
210HARTLEYCT131
311HATCHCT131
412HENDERSONCT131
515JACKMANCT131
616KAEBCT131
725*CT135
Table1


Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    Index = Table.AddIndexColumn(Source, "Row", 1, 1, Int64.Type),
    UOC = Table.UnpivotOtherColumns(Index, {"Row", "VENDORS"}, "Column", "Value"),
    Filter = Table.SelectRows(UOC, each ([Value] <> 0)),
    Reorder = Table.ReorderColumns(Filter,{"Row", "VENDORS", "Column", "Value"})
in
    Reorder
 
Upvote 0
Solution

Forum statistics

Threads
1,215,149
Messages
6,123,311
Members
449,095
Latest member
Chestertim

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