Creating a List from Table Data

jpelletierfl

New Member
Joined
Oct 18, 2022
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am looking to see if there is a way, wether it be through FBA or functions to find only the cells that have values in a table and return the row and column header in a list form ignoring all blanks.

Below is an example of the table and list I am looking to have it return
Each person can have a value in multiple columns but I do not want to return blank cells.

Is this possible?
 

Attachments

  • Screenshot (49).png
    Screenshot (49).png
    30.9 KB · Views: 15
SAILPARKROSETRAILMOUNTCHURCHMAXREGALPIT
ShopJob 1Job 2Job 3Job 4Job 5Job 6Job 7Job 8
Al134
Chris8
Jeff8
Mike8
Paula8
Ricky26
Steve26
Tammy244
Violet431
AlJob 1
1​
PARK
AlJob 4
3​
MOUNT
AlJob 6
4​
MAX
ChrisJob 3
8​
TRAIL
JeffJob 5
8​
CHURCH
MikeJob 2
8​
ROSE
PaulaShop
8​
SAIL
RickyJob 5
2​
CHURCH
RickyJob 8
6​
PIT
SteveJob 5
2​
CHURCH
SteveJob 7
6​
REGAL
TammyJob 3
2​
TRAIL
TammyJob 5
4​
CHURCH
TammyJob 8
4​
PIT
VioletJob 1
4​
PARK
VioletJob 2
3​
ROSE
VioletJob 7
1​
REGAL
 
Upvote 0

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Thanks for that.
How about
Excel Formula:
=LET(Ra,A3:A11,Rb,B2:J2,Rc,B3:J11,Rd,B1:J1,c,COLUMNS(Rc),s,SEQUENCE(ROWS(Ra)*c,,0),xa,INDEX(Ra,INT(s/c)+1),xb,INDEX(Rb,MOD(s,c)+1),xc,INDEX(Rc,INT(s/c)+1,MOD(s,c)+1),xd,INDEX(Rd,MOD(s,c)+1),FILTER(CHOOSE({1,2,3,4},xa,xb,xc,xd),xc<>""))
or if you have now got the new functions
Excel Formula:
=HSTACK(TOCOL(IF(B3:J11="",x,A3:A11),2),TOCOL(IF(B3:J11="",x,B2:J2),2),TOCOL(B3:J11,1),TOCOL(IF(B3:J11="",x,B1:J1),2))
 
Upvote 0
Here is an alternative solution with Power query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Transposed Table" = Table.Transpose(Source),
    #"Merged Columns" = Table.CombineColumns(#"Transposed Table",{"Column1", "Column2"},Combiner.CombineTextByDelimiter(":", QuoteStyle.None),"Merged"),
    #"Transposed Table1" = Table.Transpose(#"Merged Columns"),
    #"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table1", [PromoteAllScalars=true]),
    #"Renamed Columns" = Table.RenameColumns(#"Promoted Headers",{{":", "Name"}}),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Renamed Columns", {"Name"}, "Attribute", "Value"),
    #"Split Column by Delimiter" = Table.SplitColumn(#"Unpivoted Other Columns", "Attribute", Splitter.SplitTextByDelimiter(":", QuoteStyle.Csv), {"Attribute.1", "Attribute.2"})
in
    #"Split Column by Delimiter"

Book7
ABCDEFGHIJ
2Column1Column2Column3Column4Column5Column6Column7Column8Column9Column10
3SAILPARKROSETRAILMOUNTCHURCHMAXREGALPIT
4ShopJob 1Job 2Job 3Job 4Job 5Job 6Job 7Job 8
5Al134
6Chris8
7Jeff8
8Mike8
9Paula8
10Ricky26
11Steve26
12Tammy244
13Violet431
14
15NameAttribute.1Attribute.2Value
16AlPARKJob 11
17AlMOUNTJob 43
18AlMAXJob 64
19ChrisTRAILJob 38
20JeffCHURCHJob 58
21MikeROSEJob 28
22PaulaSAILShop8
23RickyCHURCHJob 52
24RickyPITJob 86
25SteveCHURCHJob 52
26SteveREGALJob 76
27TammyTRAILJob 32
28TammyCHURCHJob 54
29TammyPITJob 84
30VioletPARKJob 14
31VioletROSEJob 23
32VioletREGALJob 71
Sheet1
 
Upvote 0
Thanks for that.
How about
Excel Formula:
=LET(Ra,A3:A11,Rb,B2:J2,Rc,B3:J11,Rd,B1:J1,c,COLUMNS(Rc),s,SEQUENCE(ROWS(Ra)*c,,0),xa,INDEX(Ra,INT(s/c)+1),xb,INDEX(Rb,MOD(s,c)+1),xc,INDEX(Rc,INT(s/c)+1,MOD(s,c)+1),xd,INDEX(Rd,MOD(s,c)+1),FILTER(CHOOSE({1,2,3,4},xa,xb,xc,xd),xc<>""))
or if you have now got the new functions
Excel Formula:
=HSTACK(TOCOL(IF(B3:J11="",x,A3:A11),2),TOCOL(IF(B3:J11="",x,B2:J2),2),TOCOL(B3:J11,1),TOCOL(IF(B3:J11="",x,B1:J1),2))
Thank You!
 
Upvote 0
Here is an alternative solution with Power query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Transposed Table" = Table.Transpose(Source),
    #"Merged Columns" = Table.CombineColumns(#"Transposed Table",{"Column1", "Column2"},Combiner.CombineTextByDelimiter(":", QuoteStyle.None),"Merged"),
    #"Transposed Table1" = Table.Transpose(#"Merged Columns"),
    #"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table1", [PromoteAllScalars=true]),
    #"Renamed Columns" = Table.RenameColumns(#"Promoted Headers",{{":", "Name"}}),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Renamed Columns", {"Name"}, "Attribute", "Value"),
    #"Split Column by Delimiter" = Table.SplitColumn(#"Unpivoted Other Columns", "Attribute", Splitter.SplitTextByDelimiter(":", QuoteStyle.Csv), {"Attribute.1", "Attribute.2"})
in
    #"Split Column by Delimiter"

Book7
ABCDEFGHIJ
2Column1Column2Column3Column4Column5Column6Column7Column8Column9Column10
3SAILPARKROSETRAILMOUNTCHURCHMAXREGALPIT
4ShopJob 1Job 2Job 3Job 4Job 5Job 6Job 7Job 8
5Al134
6Chris8
7Jeff8
8Mike8
9Paula8
10Ricky26
11Steve26
12Tammy244
13Violet431
14
15NameAttribute.1Attribute.2Value
16AlPARKJob 11
17AlMOUNTJob 43
18AlMAXJob 64
19ChrisTRAILJob 38
20JeffCHURCHJob 58
21MikeROSEJob 28
22PaulaSAILShop8
23RickyCHURCHJob 52
24RickyPITJob 86
25SteveCHURCHJob 52
26SteveREGALJob 76
27TammyTRAILJob 32
28TammyCHURCHJob 54
29TammyPITJob 84
30VioletPARKJob 14
31VioletROSEJob 23
32VioletREGALJob 71
Sheet1
Thank you!
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,214
Members
449,074
Latest member
cancansova

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