Originally Posted by
Pete_UK
I've amended your 90-day file to hopefully give you what you want.
I've amended the Task List sheet by inserting a new column K and using this formula in K3:
=IF(OR(J3="",J3="-"),"",INDEX(B:B,J3)&"")
and also changed the formula in N3 to this:
=IF(M3="","",M3&"_"&K3&"_"&COUNTIFS(M$3:M3,M3,K$3:K3,K3))
Obviously, both formulae are copied down.
Then in the Schedule sheet I've changed the formula in C5 to this:
=IFERROR(INDEX('Task List'!$L:$L,MATCH(C$4&"_"&$B5&"_1",'Task List'!$N:$N,0)),"")&
IFERROR(CHAR(10)&INDEX('Task List'!$L:$L,MATCH(C$4&"_"&$B5&"_2",'Task List'!$N:$N,0)),"")&
IFERROR(CHAR(10)&INDEX('Task List'!$L:$L,MATCH(C$4&"_"&$B5&"_3",'Task List'!$N:$N,0)),"")&
IFERROR(CHAR(10)&INDEX('Task List'!$L:$L,MATCH(C$4&"_"&$B5&"_4",'Task List'!$N:$N,0)),"")&
IFERROR(CHAR(10)&INDEX('Task List'!$L:$L,MATCH(C$4&"_"&$B5&"_5",'Task List'!$N:$N,0)),"")
You can see the similarity between the terms, as the only thing that changes is the number shown in red. This will allow up to 5 events on the same day for the same vehicle to be displayed, and the formula needs to be copied across and down to complete your display.
Hope this helps.
Pete
Bookmarks