textjoin query

scottwilliams

New Member
Joined
May 15, 2018
Messages
2
i have been requested to make a simple absence viewer iin our office that is feeding from a report from our HR system and appending that report over the top of the previous one.

Essentially, the report comes down like this :

Name, Unique ID, Office Location, Dept and then absent date.

At the moment i am using VBA to transpose this data, and then using the Textjoin function once i have concatenated the name, office and dept fields to output a list like so :

{=IF(D$2=6,"Saturday",IF(D$2=7,"Sunday",TEXTJOIN(CHAR(10),TRUE,IF(Report!$I$7:$GE$7=D$4,Report!$I$2:$GE$2,""))))}

(obviously with some if functions to just highlight weekends as we are only interested in weekdays.

At first, i was not happy with the delimiter being a comma, so i added the CHAR(10) function for a line break, but my query... is more of a visual thing, is there any way to alphabetise the outputs the textjoin function provides? As the formula is joining based o ndates, these dates are not always in sequence and alphabetised in the source data, and even sorting them before they are transposed does not change the output. i amgetting something similar to the below :

London, Back Office, Joe Bloggs
Washington, HR, Jo Bloggs
Katmandu, Sales, Joseph Bloggs

Can anybody suggest a way? It's not important, it will just make the output a bit more visually appealing for the board

Thanks in advance
 

Forum statistics

Threads
1,082,368
Messages
5,365,042
Members
400,819
Latest member
Gossow

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top