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

arcaidius

Board Regular
Joined
Dec 4, 2018
Messages
51
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

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Watch MrExcel Video

Forum statistics

Threads
1,129,373
Messages
5,635,884
Members
416,886
Latest member
coreyalaurence37

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
Top