+ Reply to Thread
Results 1 to 3 of 3

How to multi level Sort, Filter and TEXTJOIN using macro?

  1. #1
    Forum Contributor
    Join Date
    02-16-2017
    Location
    Bangladesh
    MS-Off Ver
    2021
    Posts
    196

    How to multi level Sort, Filter and TEXTJOIN using macro?

    I have three sheets in my workbook named Source, Calculation and Dept_Inst.
    The range of the source sheet is "Source!B7:J50000" and I want to first sort the data according to the following conditions.

    Sort Level-1, Sort By column ?Source!I7:I50000? & Sort Order is- Largest to smallest,
    Sort Level-2, Sort By column ?Source!E7:E50000? & Sort Order is- Smallest to Largest,
    Sort Level-3, Sort By column ?Source!G7:G50000? & Sort Order is- A To Z,
    Sort Level-4, Sort By column ?Source!H7:H50000? & Sort Order is- Dept_Inst!B8:B23,
    Sort Level-5, Sort By column ?Source!J7:J50000? & Sort Order is- Dept_Inst!C8:C23,
    Sort Level-6, Sort By column ?Source!B7:B50000? & Sort Order is- Smallest to Largest,

    Secondly, have to do filter as following, Filter with the Criteria of

    Filter Criteria-1, Calculation!C11:CT11 and
    Filter Criteria-2 is Calculation!C12:CT12,

    Now finally, Join Text on Sorted and Filtered range as using following formula to the output range "Calculation!C14:CT14" e.g beneath the respective column. "=TEXTJOIN("/", TRUE, I7,E7,H7, G7, J7, B7)".

    Can anyone help me with this issue?
    Attached Files Attached Files
    Last edited by Ariful Islam; 03-25-2023 at 05:11 AM. Reason: More clearification

  2. #2
    Valued Forum Contributor
    Join Date
    09-30-2018
    Location
    Vlaams Brabant Belgium
    MS-Off Ver
    365
    Posts
    456

    Re: How to multi level Sort, Filter and TEXTJOIN using macro?

    Hi,

    i hope you use 365 with the new formula's

    ive made a powerquery to manage the data and used the new spill formulas to build your overview

    give it a look maybe you see something you like and want to use
    Attached Files Attached Files
    Please be as complete as possible in your asking so it may save use all the time to rework the solution because you didn't give all the requirements. If you have a layout in mind please work it out first so we can adapt our solution to it. Thanks.
    If you have been helped, maybe you could click the *

  3. #3
    Forum Contributor
    Join Date
    02-16-2017
    Location
    Bangladesh
    MS-Off Ver
    2021
    Posts
    196

    Re: How to multi level Sort, Filter and TEXTJOIN using macro?

    I am using Office 2021. However Power Quarry is something I know nothing about it. Your efforts are admirable. I sincerely appreciate it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Multi level filter and unique count
    By LubeTechBoiPH in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-25-2022, 02:40 AM
  2. Macro needed to convert multi-level BOM to single-level BOM as per attached file
    By AhmedSaad in forum Excel Programming / VBA / Macros
    Replies: 35
    Last Post: 05-12-2021, 08:31 AM
  3. I need help with VBA & Excel to filter on multi level
    By steiner87 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-19-2018, 10:38 PM
  4. [SOLVED] Multi level sort
    By Mr Ferret in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-15-2016, 11:43 AM
  5. [SOLVED] multi level sort in powerpivot
    By nsr1989 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-21-2013, 07:53 PM
  6. Drop Down Issue - multi level filter
    By burblecut in forum Excel General
    Replies: 3
    Last Post: 08-19-2010, 04:54 PM
  7. Using macro to convert single level BOM to Multi Level BOM
    By andrew_chong in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-07-2006, 04:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1