Can I sort concatenated text strings based on other values (using MCONCAT)?

fr.ma.young

New Member
Joined
Nov 12, 2012
Messages
1
I have scoured this forum for the answer, but this issue doesn't seem to have been addressed yet. Here's the deal. I am using a formula that searches through a separate sheet for all text strings that match up with a certain Billing ID and Date. On that separate sheet, each of the text strings is matched up with a number that represents its billing value.

The pink lettering in my sample table below is not actually in the table, but just added for your reference to reflect the billing value that exists in the separate sheet I mentioned above.

ABCD
1Billing IDDateTotal Hours for DateCombined Billing Entries
2706104-Nov-20123.00Proposal to lender [valued at 0.5 hours]; Revisions to final set of documents [the other 2.5 hours]
35-Nov-20121.0Evaluation of refinancing specifications
48109211-Nov-20120.75Presentation for firm management

<tbody>
</tbody>

Here is the array formula I'm using to generate the content in Column D:

=SUBSTITUTE(MCONCAT(UNIQUEVALUES(IF('Full Ledger of Billing Entries'!$I$2:$I$1002=A6,(IF('Full Ledger of Billing Entries'!$A$2:$A$1002=E6,"; "&'Full Ledger of Billing Entries'!$E$2:$E$1002,"")),""),1)),"; ","",1)

As you can see in the table above, the formula has sorted the text strings alphabetically. My question is: how do I sort those text strings based on the number of billing hours associated with each? In other words, how can I make them show up according to their billing value, in descending order?

Thank you in advance for any thoughts you care to share.
 
Last edited:

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,214,641
Messages
6,120,685
Members
448,978
Latest member
rrauni

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