Find match in row, return values greater than zero with column header.

arcaidius

Board Regular
Joined
Dec 4, 2018
Messages
97
So here is my dilemma, I have two tables, in column A on both tables is the work order number. Working from Table 1, I need to find a match in table 2, and then in that row find the 5 greatest number values, and return the value and column header back to Table 1.

I thought TEXTJOIN might work?
I have a TEXTJOIN formula for a different column in Table 1 but not sure how to tweak it, this one is only checking one column:

=IF(A3="","",TEXTJOIN(", ", TRUE, IF(IFERROR(MATCH(KBDataTbl_for_Houston_Metrics[Machine], IF(A3=KBDataTbl_for_Houston_Metrics[Work Order.], KBDataTbl_for_Houston_Metrics[Machine], ""), 0),"")=MATCH(ROW(KBDataTbl_for_Houston_Metrics[Machine]), ROW(KBDataTbl_for_Houston_Metrics[Machine])), KBDataTbl_for_Houston_Metrics[Machine], "")))

The columns I need to check are B through BJ:
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,213,513
Messages
6,114,064
Members
448,545
Latest member
kj9

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