Hi All,
I have come across a situation where I need to retrieve the header from an dataset. Basically I would need the headers to return where ever 1 is present.
I have attached sample spreadsheet for reference.
Thanks
Hi All,
I have come across a situation where I need to retrieve the header from an dataset. Basically I would need the headers to return where ever 1 is present.
I have attached sample spreadsheet for reference.
Thanks
Would a presentation as follows work for you?
v A B C D E F G H I J K 1 Attribute A B C D E F G H I J 2 Event1 3 Event12 1 1 1 4 Event2 1 1 1 1 5 Event23 1 1 1 1 6 Event3 1 1 7 Event34 1 1 8 favor1 1 1 9 favor2 1 1 1 1 1 1 10 free1 1 1 11 free2 1 1 12 promotion1 1 1 1 13 promotion2 1 1 1 14 promotion3 1 1 1 1 1
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
Hi Alan,
this ways also works good for me..
B18=IFERROR(INDEX($B$2:$N$2,SMALL(IF($A$3:$A$12=B$17,IF($B$3:$N$12=1,COLUMN($B$2:$N$2)-COLUMN($B$2)+1)),ROWS($B$18:B18))),"")
control+shift+enter
copy across and down
Hi Alen, thanks for the function.. however I am getting False as my output even after applying Array (control+shift+enter)
)
Since my post #2 is satisfactory for you, here is how using Power Query. Here is the Mcode and the file attached for your review and analysis
Load the table into Power Query. Highlight column A and unpivot all other columns. Pivot the columns using Column 1 as your headers and do not aggregate. Next highlight all columns and use the replace function to replace all zeros with nulls. Close and Load to your excel wb.Please Login or Register to view this content.
Last edited by alansidman; 03-19-2020 at 12:13 PM.
Thanks Alan. I will try
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks