Tranferring rows according to the lowest score into a second table

Danny_G

New Member
Joined
Sep 28, 2021
Messages
4
Office Version
  1. 2019
Platform
  1. Windows
Hi!

I would like to fill a second table with rows from a first table, according to the lowest score value.

Can you help me with a formula to do this?

I've pasted a screenshot about what I would like.

I have two rows of "different values for 1 parameter(Sp.1). These values give me a final score. I need these parameters, with it's values for the lowest score in the second table. If the two scores are equal (it will happen rarely) then one of the two rows.

Is this possible only with formula?

THANK YOU VERY MUCH!!!
XLS question.png
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Cannot manipulate data in a picture. Please reload sample data using XL2BB
 
Upvote 0
Cannot manipulate data in a picture. Please reload sample data using XL2BB
OK.
It looks interesting :) but nice in preview mode...

Thank You!!!




Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1No.LWRSCUPAJUPBSWPLSMLIScore:Lowest ScoreNo.LWRSCUPAJUPBSWPLSMLIScore:
2Sp.10,890,870,980,961,000,710,951,001,000,9647,4435,68Sp.10,931,000,980,910,890,630,891,000,900,9635,68
30,931,000,980,910,890,630,891,000,900,9635,68Sp.20,891,000,700,911,000,690,891,000,900,9638,50
4Sp.20,891,000,700,911,000,690,891,000,900,9638,5038,50Sp.30,891,000,700,911,000,890,891,000,900,9639,76
50,931,000,890,911,000,690,891,000,900,9639,90
6Sp.30,891,000,700,911,000,890,891,000,900,9639,7639,76
70,891,000,700,911,000,890,891,000,900,9639,76
Sheet2
 
Upvote 0
Load your source table to Power Query and Group to find the Max Score
Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Filled Down" = Table.FillDown(Source,{"No."}),
    #"Grouped Rows" = Table.Group(#"Filled Down", {"No."}, {{"Max", each List.Max([#"Score:"]), type number}})
in
    #"Grouped Rows"

Duplicate the original table and then merge itself.

Power Query:
let
    Source = Table.NestedJoin(Table1, {"No.", "Max"}, #"Table1 (2)", {"No.", "Score:"}, "Table1 (2)", JoinKind.LeftOuter),
    #"Expanded Table1 (2)" = Table.ExpandTableColumn(Source, "Table1 (2)", {"LW", "RS", "CU", "PA", "JU", "PB", "SW", "PL", "SM", "LI"}, {"Table1 (2).LW", "Table1 (2).RS", "Table1 (2).CU", "Table1 (2).PA", "Table1 (2).JU", "Table1 (2).PB", "Table1 (2).SW", "Table1 (2).PL", "Table1 (2).SM", "Table1 (2).LI"}),
    #"Removed Duplicates" = Table.Distinct(#"Expanded Table1 (2)")
in
    #"Removed Duplicates"

Book3
ABCDEFGHIJKLMNOPQRSTUVWXY
1No.LWRSCUPAJUPBSWPLSMLIScore:No.MaxTable1 (2).LWTable1 (2).RSTable1 (2).CUTable1 (2).PATable1 (2).JUTable1 (2).PBTable1 (2).SWTable1 (2).PLTable1 (2).SMTable1 (2).LI
2Sp.10.8928570.874940.9810510.95693810.712310.94518110.96079947.44077Sp.147.440769840.8928571430.8749399710.9810507860.95693779910.7123103340.945179584110.960799385
30.92592610.9810510.9149130.8864760.6266740.89365510.90.96079935.67806Sp.239.90.9310.890.91491308310.6858968510.89365504910.90.960799385
4Sp.20.89285710.704810.91491310.6858970.89365510.90.96079938.5Sp.339.757884650.89285714310.7048097710.91491308310.8936025480.89365504910.90.960799385
50.9310.890.91491310.6858970.89365510.90.96079939.9
6Sp.30.89285710.704810.91491310.8936030.89365510.90.96079939.75788
70.89285710.704810.91491310.8936030.89365510.90.96079939.75788
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,897
Messages
6,122,148
Members
449,066
Latest member
Andyg666

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