Repeating Unicode Character Issue (Publication calendar)

EDV

New Member
Joined
Feb 13, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hello Guys,

This is my first time posting on the forum and would appreciate getting some pointers on a formula that has been developed to extract dates, titles form a worksheet entitled "Monthly_Publication_List". The formula reads two columns of data (i.e. dates, non-dates) and a publication title based on a dropdown containing both the month and year. In the output, in front of each date, there is a unicode character that generates a book icon. All in all, the formula works perfectly, however, I would like to make the unicode character more flexible. In other words, not hard-code but retrieved from an additional column (i.e. C) in the Monthly_Publication_List worksheet. Here is the coding that should do this kind of processing, however, the unicode characters are being read and output from C in its entirety and not on a single title/date basis.

Here is the original and modified code that performs these operations.

Original code:
Excel Formula:
=LET(s,Monthly_Publication_List!$A$3:$B$1002,d,INDEX(s,,1),p,INDEX(s,,2),
t,SORT(FILTER(s,IFERROR(EOMONTH(--d,-1)+1,IF(ISNUMBER(SEARCH(TEXT(B18,"mmm"),d)),B18,0))=B18)),
u,INDEX(t,,1),
IF(OR(ISERR(t)),"",HSTACK(IFERROR(TEXTJOIN(CHAR(10),,UNICHAR(128218)&IFERROR(DAY(u),u)),""),TEXTJOIN(CHAR(10),,INDEX(t,,2)))))

Modified code (not working as expected):
Excel Formula:
=LET(
    s, Monthly_Publication_List!$A$3:$C$1002,
    d, INDEX(s,,1),
    p, INDEX(s,,2),
    unichar_codes, INDEX(s,,3),
    unichar_prefix, TEXTJOIN("", TRUE, IFERROR(UNICHAR(unichar_codes), "")),
    filtered_data, FILTER(s, IFERROR(EOMONTH(--d,-1)+1, IF(ISNUMBER(SEARCH(TEXT(B21,"mmm"),d)), B21, 0)) = B21),
    sorted_data, SORT(filtered_data),
    dates, INDEX(sorted_data,,1),
    titles, INDEX(sorted_data,,2),
    formatted_dates, TEXTJOIN(CHAR(10), TRUE, IFERROR(unichar_prefix & IFERROR(DAY(dates), dates), "")),
    formatted_titles, TEXTJOIN(CHAR(10), TRUE, titles),
    IF(OR(ISERR(sorted_data)), "", HSTACK(formatted_dates, formatted_titles))
)

Date file snapshot:

1707822328656.png


Output (original not reading unicode from Column C)
View attachment 106754

Output (reading column C data to retrieve the unicode)

1707822556848.png


If any other information is required just let me know. Any help is greatly appreciated.
 

Attachments

  • 1707822264264.png
    1707822264264.png
    19.1 KB · Views: 21
  • 1707822275625.png
    1707822275625.png
    19.1 KB · Views: 16
  • 1707822365582.png
    1707822365582.png
    17.5 KB · Views: 22
  • 1707822540254.png
    1707822540254.png
    48.6 KB · Views: 22

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,224,816
Messages
6,181,143
Members
453,021
Latest member
Justyna P

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