Home

Calendar Help

%3CLINGO-SUB%20id%3D%22lingo-sub-658190%22%20slang%3D%22en-US%22%3ECalendar%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-658190%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%26nbsp%3Binclude%20the%20Name%2C%20Room%2C%20Unit%2C%20Provider%2C%20and%20Event%20Type%20to%20show%20on%20the%20month%20calendar%20together.%26nbsp%3B%20How%20do%20I%20do%20that%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-658190%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-659256%22%20slang%3D%22en-US%22%3ERe%3A%20Calendar%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-659256%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F163429%22%20target%3D%22_blank%22%3E%40Lisa%20LaCombe%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHi%20Lisa%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat%20could%20be%20like%3C%2FP%3E%0A%3CPRE%3E%3DIFERROR(%0A%20%20%20VLOOKUP(D5%2CImportant_Dates%2C2%2CFALSE)%20%26amp%3B%20CHAR(10)%20%26amp%3B%0A%20%20%20VLOOKUP(D5%2CImportant_Dates%2C3%2CFALSE)%20%26amp%3B%20CHAR(10)%20%26amp%3B%0A%20%20%20VLOOKUP(D5%2CImportant_Dates%2C4%2CFALSE)%20%26amp%3B%20CHAR(10)%20%26amp%3B%0A%20%20%20VLOOKUP(D5%2CImportant_Dates%2C5%2CFALSE)%20%26amp%3B%20CHAR(10)%20%26amp%3B%0A%20%20%20VLOOKUP(D5%2CImportant_Dates%2C6%2CFALSE)%20%26amp%3B%20CHAR(10)%20%26amp%3B%0A%20%20%20VLOOKUP(D5%2CImportant_Dates%2C7%2CFALSE)%20%26amp%3B%20CHAR(10)%2C%22%22)%3C%2FPRE%3E%0A%3CP%3Esee%20in%20Jun%20sheet.%3C%2FP%3E%0A%3CP%3EPlease%20note%2C%20in%20Daily%20Calendar%20you%20may%20have%20only%20one%20record%20for%20each%20date.%20If%20few%20ones%2C%20only%20first%20will%20be%20shown.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-659382%22%20slang%3D%22en-US%22%3ERe%3A%20Calendar%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-659382%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F163429%22%20target%3D%22_blank%22%3E%40Lisa%20LaCombe%3C%2FA%3E%3C%2FP%3E%3CP%3EBasically%20the%20same%20technique%20as%20you%20and%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%20but%20with%20a%20slightly%20risky%20edge%20that%20might%20invite%20Sergei's%20comment.%26nbsp%3B%20I%20do%20not%20normally%20use%20VLOOKUP%20but%20it%20seems%20as%20good%20as%20any%20alternative%20here%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3D%20IFERROR(%20TEXTJOIN(%20%C2%B6%2C%20TRUE%2C%20%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EVLOOKUP(%20Current_Date%2C%20Important_Dates%2C%20%7B2%2C3%2C4%2C5%2C7%7D%2C%20FALSE%20)%20%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E)%2C%22%22)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20main%20risk%20is%20in%20my%20definition%20of%20'%3CSTRONG%3ECurrent_Date%3C%2FSTRONG%3E'%20which%20I%20allowed%20to%20be%20relative%20to%20the%20active%20cell%20and%20sheet%20%3CSPAN%3E(immediately%20above%20it)%3C%2FSPAN%3E%20by%20referring%20to%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3D!R%5B-1%5DC%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EIt%20seems%20to%20be%20working%20and%20allowed%20me%20to%20add%20an%20'important%20date'.%20%26nbsp%3B%20The%20name%20'%3CSTRONG%3E%C2%B6%3C%2FSTRONG%3E'%20is%20a%20little%20non-standard%20but%20it%20simply%20refers%20to%20the%20line%20feed%20character%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DCHAR(10)%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EThe%20other%20point%20of%20note%20is%20that%20the%20array%20constant%26nbsp%3B%20returns%20an%20array%20of%205%20text%20strings%20that%20TEXTJOIN%20combines%20(Office%202013%20and%20later%20I%20think)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-661366%22%20slang%3D%22en-US%22%3ERe%3A%20Calendar%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-661366%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214174%22%20target%3D%22_blank%22%3E%40Peter%20Bartholomew%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMr.%20Baklan%2C%20your%20formula%20worked.%26nbsp%3B%20But%20now%20if%20two%20or%20more%20items%20fall%20on%20the%20same%20date%2C%20how%20could%20I%20get%20them%20all%20to%20show%20on%20the%20Jun%20calendar%20for%20that%20day%3F%26nbsp%3B%20Also%2C%20is%20there%20a%20way%20to%20%22squish%22%20the%20data%20down%20so%26nbsp%3Ball%20events%20for%20a%20specific%20day%20can%26nbsp%3Bfit%20in%20that%20day%3F%26nbsp%3B%26nbsp%3BI%20know%20how%20to%20make%20the%20cells%20bigger%20if%20I%20could%20just%20get%20the%20pertinent%20info%20to%20fit.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-661626%22%20slang%3D%22en-US%22%3ERe%3A%20Calendar%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-661626%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F163429%22%20target%3D%22_blank%22%3E%40Lisa%20LaCombe%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHi%20Lisa%2C%3C%2FP%3E%0A%3CP%3EAs%20variant%3C%2FP%3E%0A%3CP%3E1)%20Let%20add%20two%20named%20ranges%2C%20one%20only%20for%20dates%20in%20Daily%20Calendar%20sheet%2C%20another%20one%20for%20data%20only%20(added%20in%20attached%20file)%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20563px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F116788i2E9164BE2538DA5A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E2)%20Formula%20for%20the%20event%20could%20be%3C%2FP%3E%0A%3CPRE%3E%3DTEXTJOIN(%22%22%2CTRUE%2C%0A%20%20%20IF(ROW(Important_Data_Only)*(Important_Dates_Only%3DF5)*(Important_Data_Only%26lt%3B%26gt%3B%22%22)%2C%0A%20%20%20%20%20%20Important_Data_Only%20%26amp%3B%0A%20%20%20%20%20%20IF(COLUMN(Important_Data_Only)%3D4%2C%22%20%2F%20%22%2C%0A%20%20%20%20%20%20%20%20%20IF(COLUMN(Important_Data_Only)%3D8%2CCHAR(10)%20%26amp%3B%20%22--------%22%20%26amp%3B%20CHAR(10)%2C%20CHAR(10)))%2C%0A%20%20%20%22%22))%3C%2FPRE%3E%0A%3CP%3EPlease%20note%2C%20TEXTJOIN()%20is%20available%20only%20for%20Office365%20subscribers%20plus%20for%20Excel%202019.%3C%2FP%3E%0A%3CP%3EI%20hardcoded%20here%20columns%20number%204%20and%208%2C%20but%20they%20also%20could%20be%20added%20to%20named%20range.%20This%20part%20of%20the%20formula%20compacts%20a%20bit%20Room%20%2F%20Unit%20and%20adds%20separator%20after%20the%20event%3C%2FP%3E%0A%3CP%3E3)%20On%20ribbon%20check%20box%20View-%26gt%3BHeadings%20(Show%20tab)%3C%2FP%3E%0A%3CP%3E4)%20Select%20rows%20with%20events%20and%20Home-%26gt%3BFormat-%26gt%3BRow%20Height%2C%20set%20150.%20Alternatively%20AutoFit%20Row%20Height%20in%20the%20same%20drop-down%20menu.%3C%2FP%3E%0A%3CP%3E5)%20Uncheck%20Headings%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20attached%20file%20formulas%20updated%20for%20Jun%20only.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-661812%22%20slang%3D%22en-US%22%3ERe%3A%20Calendar%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-661812%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214174%22%20target%3D%22_blank%22%3E%40Peter%20Bartholomew%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPeter%2C%20they%20are%20in%20one%20line%20here%20and%20separated%20with%20%22%2F%22%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-661781%22%20slang%3D%22en-US%22%3ERe%3A%20Calendar%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-661781%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F163429%22%20target%3D%22_blank%22%3E%40Lisa%20LaCombe%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20are%20appending%20fields%20individually%20with%20%22%26amp%3B%22%20(%3CEM%3EI%20didn't%20realise%20TEXTJOIN%20was%20so%20recent%3B%20up%20to%20about%20a%20month%20ago%20I%20was%20using%20Office%202010%20so%20hadn't%20really%20noticed%20its%20release%20date%3C%2FEM%3E)%20you%20could%20reduce%20space%20demands%20by%20using%20%22%2C%20%22%20to%20separate%20the%20Room%20and%20Unit%20codes%2C%20so%20placing%20them%20on%20the%20same%20line.%3C%2FP%3E%3CP%3EI%20would%20probably%20use%20FILTER%20to%20select%20multiple%20records%20but%20that%20is%20little%20use%20to%20most%20others.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECorrection%3C%2FP%3E%3CP%3EI%20have%20just%20found%20that%20TEXTJOIN%20accepts%20an%20array%20as%20delimiters%20so%20comma%20separator%20and%20line%20feeds%20can%20be%20combined!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-663136%22%20slang%3D%22en-US%22%3ERe%3A%20Calendar%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-663136%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20basically%20playing%20but%20I%20found%20a%20TEXTJOIN%20delimiter%20to%20be%20the%20named%20formula%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DCHAR(%7B10%2C47%2C47%2C10%2C10%7D)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3Eworked%20well%20in%20the%20formula%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3D%20IFERROR(%20%3C%2FSTRONG%3E%3CSTRONG%3ETEXTJOIN(%20%3C%2FSTRONG%3E%3CSTRONG%3Edelimiter%2C%20%3C%2FSTRONG%3E%3CSTRONG%3ETRUE%2C%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EVLOOKUP(%20CurrentDate%2C%20ImportantDates%2C%20%7B2%2C3%2C4%2C5%2C7%7D%2C%20FALSE%20)%20)%2C%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%22%22)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CTABLE%3E%3CTBODY%3E%3CTR%3E%3CTD%3EDoe%2C%20Jane%3CBR%20%2F%3E128B%2F1B%2F43632%3CBR%20%2F%3E30%20Day%20Evaluation%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-663810%22%20slang%3D%22en-US%22%3ERe%3A%20Calendar%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-663810%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214174%22%20target%3D%22_blank%22%3E%40Peter%20Bartholomew%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYes%2C%20that's%20much%20better.%20I'd%20only%20use%20as%20delimiter%3C%2FP%3E%0A%3CPRE%3E%3DSUBSTITUTE(%7B%22X%22%2C%22%20%2F%20%22%2C%22X%22%2C%22X%22%2C%22X--------X%22%7D%2C%22X%22%2CCHAR(10))%3C%2FPRE%3E%0A%3CP%3Enot%20to%20limit%20delimiter%20by%20one%20character.%20Plus%20VLOOKUP%20returns%20only%20one%20(first%20found)%20record.%20Finally%3C%2FP%3E%0A%3CPRE%3E%3DTEXTJOIN(delimeter%2CTRUE%2C%0A%20%20%20IF(ROW(Important_Data_Only)*(Important_Dates_Only%3DCurrent_Date)*(Important_Data_Only%26lt%3B%26gt%3B%22%22)%2C%0A%20%20%20%20%20%20Important_Data_Only%2C%22%22))%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Lisa LaCombe
New Contributor

I am trying to include the Name, Room, Unit, Provider, and Event Type to show on the month calendar together.  How do I do that?

8 Replies

@Lisa LaCombe 

 

Hi Lisa,

 

That could be like

=IFERROR(
   VLOOKUP(D5,Important_Dates,2,FALSE) & CHAR(10) &
   VLOOKUP(D5,Important_Dates,3,FALSE) & CHAR(10) &
   VLOOKUP(D5,Important_Dates,4,FALSE) & CHAR(10) &
   VLOOKUP(D5,Important_Dates,5,FALSE) & CHAR(10) &
   VLOOKUP(D5,Important_Dates,6,FALSE) & CHAR(10) &
   VLOOKUP(D5,Important_Dates,7,FALSE) & CHAR(10),"")

see in Jun sheet.

Please note, in Daily Calendar you may have only one record for each date. If few ones, only first will be shown.

@Lisa LaCombe

Basically the same technique as you and @Sergei Baklan but with a slightly risky edge that might invite Sergei's comment.  I do not normally use VLOOKUP but it seems as good as any alternative here 

= IFERROR( TEXTJOIN( ¶, TRUE,

VLOOKUP( Current_Date, Important_Dates, {2,3,4,5,7}, FALSE )

),"")

 

The main risk is in my definition of 'Current_Date' which I allowed to be relative to the active cell and sheet (immediately above it) by referring to 

=!R[-1]C

It seems to be working and allowed me to add an 'important date'.   The name '' is a little non-standard but it simply refers to the line feed character

=CHAR(10) 

The other point of note is that the array constant  returns an array of 5 text strings that TEXTJOIN combines (Office 2013 and later I think)

@Sergei Baklan @Peter Bartholomew 

Mr. Baklan, your formula worked.  But now if two or more items fall on the same date, how could I get them all to show on the Jun calendar for that day?  Also, is there a way to "squish" the data down so all events for a specific day can fit in that day?  I know how to make the cells bigger if I could just get the pertinent info to fit. 

@Lisa LaCombe 

Hi Lisa,

As variant

1) Let add two named ranges, one only for dates in Daily Calendar sheet, another one for data only (added in attached file)

image.png

2) Formula for the event could be

=TEXTJOIN("",TRUE,
   IF(ROW(Important_Data_Only)*(Important_Dates_Only=F5)*(Important_Data_Only<>""),
      Important_Data_Only &
      IF(COLUMN(Important_Data_Only)=4," / ",
         IF(COLUMN(Important_Data_Only)=8,CHAR(10) & "--------" & CHAR(10), CHAR(10))),
   ""))

Please note, TEXTJOIN() is available only for Office365 subscribers plus for Excel 2019.

I hardcoded here columns number 4 and 8, but they also could be added to named range. This part of the formula compacts a bit Room / Unit and adds separator after the event

3) On ribbon check box View->Headings (Show tab)

4) Select rows with events and Home->Format->Row Height, set 150. Alternatively AutoFit Row Height in the same drop-down menu.

5) Uncheck Headings

 

In attached file formulas updated for Jun only.

@Lisa LaCombe 

If you are appending fields individually with "&" (I didn't realise TEXTJOIN was so recent; up to about a month ago I was using Office 2010 so hadn't really noticed its release date) you could reduce space demands by using ", " to separate the Room and Unit codes, so placing them on the same line.

I would probably use FILTER to select multiple records but that is little use to most others.

 

Correction

I have just found that TEXTJOIN accepts an array as delimiters so comma separator and line feeds can be combined!

@Peter Bartholomew 

Peter, they are in one line here and separated with "/"

@Sergei Baklan 

I am basically playing but I found a TEXTJOIN delimiter to be the named formula

=CHAR({10,47,47,10,10})

worked well in the formula

= IFERROR( TEXTJOIN( delimiter, TRUE,

VLOOKUP( CurrentDate, ImportantDates, {2,3,4,5,7}, FALSE ) ),

"")

 

Doe, Jane
128B/1B/43632
30 Day Evaluation

@Peter Bartholomew ,

 

Yes, that's much better. I'd only use as delimiter

=SUBSTITUTE({"X"," / ","X","X","X--------X"},"X",CHAR(10))

not to limit delimiter by one character. Plus VLOOKUP returns only one (first found) record. Finally

=TEXTJOIN(delimeter,TRUE,
   IF(ROW(Important_Data_Only)*(Important_Dates_Only=Current_Date)*(Important_Data_Only<>""),
      Important_Data_Only,""))
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
48 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies