How to convert table to column data

Rock5150

Board Regular
Joined
Nov 16, 2012
Messages
93
Office Version
  1. 365
Platform
  1. Windows
I have the below grid table of data with X and Y axis information. I would like to only pull the numbers where the X and Y names are intersecting and from a subset of information. So in one sheet (image 1) i have the below information. On another sheet (image 2) i have the names of the players that i want to pull. The reason for this second sheet is it is hard for me to scan a grid table to find the lowest score with the players eligible (image 2). I have a conditional format (from another thread) that colors those in sheet 1 that are playing (sheet 2). However i would like sheet two to have the third column populate the net score so then in column c (sheet 2, third column) i can do a quick sort

SHEET/IMAGE 1. This tab is called "Scores"

Ham and Egg Spreadsheet.xlsx
WXYZAAABACADAEAFAGAHAIAJAK
1Alston JasonArchuleta MichaelBaker BeaBledsoe DarrellBolden AnthonyBooker RichardBrister AntonioBrown KendallColebrook JamesCollebrook SeanDubose DamitoinEdmonds JojoEdmonds ScottEvans Booker
2Alston Jason 67557772646872697270625659
3Archuleta Michael67 557267626871686769605459
4Baker Bea5555 5555515455555455504749
5Bledsoe Darrell777255 76677682747674645661
6Bolden Anthony72675576 636974697068615559
7Booker Richard6462516763 6266626364575255
8Brister Antonio686854766962 74707068605460
9Brown Kendall72715582746674 747472625559
10Colebrook James6968557469627074 7068595460
11Collebrook Sean726754767063707470 70625660
12Dubose Damitoin70695574686468726870 585460
13Edmonds Jojo6260506461576062596258 5354
14Edmonds Scott565447565552545554565453 50
15Evans Booker59594961595560596060605450 
Scores
Cell Formulas
RangeFormula
X2:AK15X2=IF($W2=X$1,"",LET(tbl,$B$5:$S$10983,n,$A$5:$A$10983,r,INDEX(tbl,MATCH($W2,n,0)+1,0),c,INDEX(tbl,MATCH(X$1,n,0)+1,0),SUM(IF(r<c,r,c))))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
X103:EJ213,X81:X102,X2:EJ80Expression=COUNTIFS(Names!$A$2:$A$500,$W2,Names!$B$2:$B$500,X$1)textNO



SHEET/IMAGE 2 . The third column is where i want to populate the net score pulled from sheet/image 1. This tab is called "Names"

Ham and Egg Spreadsheet.xlsx
ABC
1Partner APartner BNET SCORE
2Alston JasonAlston Jason
3Alston JasonArchuleta Michael
4Alston JasonBaker Bea
5Alston JasonBledsoe Darrell
6Alston JasonBolden Anthony
7Alston JasonBooker Richard
8Alston JasonBrister Antonio
9Alston JasonBrown Kendall
10Alston JasonColebrook James
11Alston JasonCollebrook Sean
12Alston JasonDubose Damitoin
13Alston JasonEdmonds Jojo
14Alston JasonEdmonds Scott
15Alston JasonEvans Booker
16Evans BookerEdmonds Jojo
17Evans BookerBaker Bea
18Bolden AnthonyBaker Bea
19Brown KendallArchuleta Michael
Names
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
To follow up, in teh above, Column A in sheet 2 would be the "vertical" in Column w (sheet 1) and the Column B in sheet 2 above would be the horizontal (row 1)
 
Upvote 0
So you wanted to look up the net score from the various match-ups from the big table?:
Mr Excel Playground 3.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAK
1Partner APartner BNET SCOREAlston JasonArchuleta MichaelBaker BeaBledsoe DarrellBolden AnthonyBooker RichardBrister AntonioBrown KendallColebrook JamesCollebrook SeanDubose DamitoinEdmonds JojoEdmonds ScottEvans Booker
2Alston JasonAlston Jason0Alston Jason512985544483128442768560
3Alston JasonArchuleta Michael51Archuleta Michael30654094231250846036993276
4Alston JasonBaker Bea29Baker Bea34175277658914423612798421
5Alston JasonBledsoe Darrell85Bledsoe Darrell100423664128184666231534029
6Alston JasonBolden Anthony5Bolden Anthony5326148664483925174107632
7Alston JasonBooker Richard4Booker Richard50445858895573834699129428
8Alston JasonBrister Antonio44Brister Antonio527758828671534384237462
9Alston JasonBrown Kendall83Brown Kendall40123713936529789889988821
10Alston JasonColebrook James12Colebrook James19103130282814294950524722
11Alston JasonCollebrook Sean84Collebrook Sean746270845653246168921716
12Alston JasonDubose Damitoin42Dubose Damitoin394542831005751861010019496
13Alston JasonEdmonds Jojo76Edmonds Jojo954621577689145668154055
14Alston JasonEdmonds Scott85Edmonds Scott13676736842336308255928
15Alston JasonEvans Booker60Evans Booker50493422635065983726614
16Evans BookerEdmonds Jojo66
17Evans BookerBaker Bea3
18Bolden AnthonyBaker Bea61
19Brown KendallArchuleta Michael12
Sheet21
Cell Formulas
RangeFormula
C2:C19C2=INDEX($X$2:$AK$15,MATCH(A2,$W$2:$W$15),MATCH(B2,$X$1:$AK$1))
 
Upvote 0
How about
Excel Formula:
=INDEX(Scores!$X$2:$AK$15,MATCH(A2,Scores!$W$2:$W$15,0),MATCH(B2,Scores!$X$1:$AK$1,0))
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0
An alternative solution is to unpivot your data using Power Query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}, {"Alston Jason", Int64.Type}, {"Archuleta Michael", Int64.Type}, {"Baker Bea", Int64.Type}, {"Bledsoe Darrell", Int64.Type}, {"Bolden Anthony", Int64.Type}, {"Booker Richard", Int64.Type}, {"Brister Antonio", Int64.Type}, {"Brown Kendall", Int64.Type}, {"Colebrook James", Int64.Type}, {"Collebrook Sean", Int64.Type}, {"Dubose Damitoin", Int64.Type}, {"Edmonds Jojo", Int64.Type}, {"Edmonds Scott", Int64.Type}, {"Evans Booker", Int64.Type}}),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Changed Type", {"Column1"}, "Attribute", "Value")
in
    #"Unpivoted Other Columns"
 
Upvote 0

Forum statistics

Threads
1,215,530
Messages
6,125,353
Members
449,220
Latest member
Edwin_SVRZ

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