Textjoin multiple columns based on unique values in first column and highest value in another column

LeonardH

New Member
Joined
Dec 21, 2013
Messages
35
Office Version
  1. 365
Platform
  1. Windows
My title might be confusing. So, here goes.

I'm attempting to create a summary sheet of sorts for a weekly schedule. There are multiple tables throughout the workbook that represent days of the week and tasks for each day. View a portion of one of those tables in my "Thursday" tab below:

Schedule Table Snip.PNG


I would like for one cell in the summary sheet to call out each unique piece of equipment and add the description of the task with the greatest Total Hours. In other words, based on the sample above, I need a formula for a cell that provides the following output:

BMHT246 - RR KOM 830E AC BED SWAP
BMDZ454 - CAT854K-TIER4-CPM

What I have to this point is shown below:

Cover Sheet Snip.PNG


The formula I currently have is:
Excel Formula:
=TEXTJOIN(CHAR(10),TRUE,UNIQUE(Thursday!$A$4:$A$25,FALSE))

I really appreciate everyone's help! Thanks in advance.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
How about:

Book1 (version 2).xlsb
ABCDEFGH
1
2
3EquipOrder#PriorityDay PM's Bald ShopCreationPlan DateStatusTotal Hours
4BMHT2469RR KOM 830E AC BED SWAP24
5
6BMDZ4541Bent2
7BMDZ4542CAT854K-TIER-CPM21
8BMDZ4543a
9BMDZ4544b4
10BMDZ4545c1
11BMDZ4546d2
12
13BMHT246 - RR KOM 830E AC BED SWAP BMDZ454 - CAT854K-TIER-CPM
Sheet10
Cell Formulas
RangeFormula
A13A13=TEXTJOIN(CHAR(10),1,IF(A4:A11<>"",IF(H4:H11=MAXIFS(H4:H11,A4:A11,A4:A11),A4:A11&" - "&D4:D11,""),""))


If there's a tie for the most hours, both tasks will be shown.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

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