I have changed the C1 and B1 in the lookup table to just 2 or 1
and then used
=INDEX(Sheet2!$B$3:$B$27,MATCH(Sheet1!D5,Sheet2!$A$3:$A$27,0))&IF(INDEX(Sheet2!$C$3:$C$27,MATCH(Sheet1!D5,Sheet2!$A$3:$A$27,0))=2,F5,E5)
that now works with the correct cells copied down
so if the lookup is not a 2 - it will chose E5 .... can nest further if you need other options
=IF(D5="Daily Senior Staff Briefing",("XXXX receives his Daily Senior Staff Briefing"),IF(D5="FLIGHT",("XXXX depart "&F5&" via Plane enroute to "&F8),IF(D5="DEPART",("XXXX depart "&F5&" via Car enroute to "&F8),IF(D5="CAR",("XXXX depart "&F5&" via Car enroute to "&F8),IF(D5="Relax Time",("xxxxx have no events scheduled during this time"),IF(D5="Down Time",("xxxxx have no public events scheduled"),INDEX(Sheet2!$B$3:$B$27,MATCH(Sheet1!D5,Sheet2!$A$3:$A$27,0))&IF(INDEX(Sheet2!$C$3:$C$27,MATCH(Sheet1!D5,Sheet2!$A$3:$A$27,0))=2,F5,E5)))))))
no need for any indirect
just a lookup and IF
may be able to simplify further - but thats
on dropbox - BUT only for a few days
Shared with Dropbox
www.dropbox.com
Daily Schedule 2023 v4 -ETAF.xlsx |
---|
|
---|
| A | B | C | D | E | F |
---|
1 | EVENT TYPE | | | CATEGORY | DURATION | RON |
---|
2 | DAILY SENIOR STAFF BRIEFING | xxxxx receives his Daily Senior Staff Briefing | | | FLIGHT TIME | Home |
---|
3 | AFTERNOON TEA | xxxxx host an Afternoon Tea at | 2 | | DRIVE TIME | Hotel |
---|
4 | ARRIVE | xxxxx arrive at | 2 | | | |
---|
5 | AWARD GALA | xxxxx attend an Award Gala at | 2 | | | |
---|
6 | AWARDS CEREMONY | xxxxx attend an Awards Ceremony at | 2 | | | |
---|
7 | BREAKFAST | xxxxx attend a breakfast at | 2 | | | |
---|
8 | BRIEFING | xxxxx attend a Briefing at | 2 | | | |
---|
9 | CEREMONY | xxxxx attend a Ceremony at | 2 | | | |
---|
10 | CHURCH SERVICE | xxxxx attend a Church Service at | 2 | | | |
---|
11 | COMMEMORATIVE SERVICE | xxxxx attend a Commemorative Service at | 2 | | | |
---|
12 | DINNER | xxxxx attend a Dinner at | 2 | | | |
---|
13 | EVENT | xxxxx attend an Event at | 2 | | | |
---|
14 | FUNERAL SERVICE | xxxxx attend a Funeral Service at | 2 | | | |
---|
15 | GARDEN PARTY | xxxxx host a Garden Party at | 2 | | | |
---|
16 | LUNCH | xxxxx attend a Lunch at | 2 | | | |
---|
17 | MEETING | xxxxx attend a Meeting at | 2 | | | |
---|
18 | MEMORIAL SERVICE | xxxxx attend a Memorial Service at | 2 | | | |
---|
19 | MORNING TEA | xxxxx attend a Morning Tea at | 2 | | | |
---|
20 | PERFORMANCE | xxxxx attend a Performance at | 2 | | | |
---|
21 | RECEPTION | xxxxx attend a Reception at | 2 | | | |
---|
22 | SCHOOL VISIT | xxxxx attend a School Visit of | 2 | | | |
---|
23 | TRAVEL | xxxxx Travel to | 2 | | | |
---|
24 | VISIT | xxxxx Visit | 2 | | | |
---|
25 | BALL | xxxxx attend the | 1 | | | |
---|
26 | FESTIVAL | xxxxx attend the | 1 | | | |
---|
27 | VIDEO RECORDING | xxxxx Record a Video for | 1 | | | |
---|
28 | CAR | xxxxx depart | | | | |
---|
29 | DEPART | xxxxx depart | | | | |
---|
30 | FLIGHT | xxxxx depart | | | | |
---|
31 | RELAX TIME | xxxxx have no events scheduled during this time | | | | |
---|
32 | DOWN TIME | xxxxx have no public events scheduled | | | | |
---|
33 | | | | | | |
---|
|
---|