surreal1780
New member
- Local time
- Today, 08:32
- Joined
- Feb 28, 2008
- Messages
- 8
Before you read this question, just know that yes, I do realize how cumbersome the function is below and that there are multiple recommendations for function building that have been violated. With that said, here's what I am having difficulty with.
I am trying to construct a Switch function that concerns two fields:
"Allocation" field and a "Pre-assessment Date" field.
I would like for the "Pre-assessment Date" field to display one of several dates based on what is selected in the "Allocation" field...here's where you might want to scream, curse me out, or simply go to the next thread...please don't...(e.g. if "Allocation" displays "Group 1A – Thursdays at 1:30pm-2:45pm from Jan. 17 to Feb. 21 with Marcy" the field should display "01/03/2008" and so forth
This is the function I've constructed, but is not working (i.e., I'm getting an invalid syntax error message pop up)
=Switch(Allocation=“Group 1A – Thursdays at 1:30pm-2:45pm from Jan. 17 to Feb. 21 with Marcy”, “01/03/2008”, Allocation=“Group 2A – Tuesdays at 10:00-11:15am from Jan. 29 to Mar. 4 with Jennifer”, “01/15/2008”, Allocation=“Group 3A – Wednesdays at 7:00pm-8:15pm from Mar. 5 to Apr. 9 with Robin”, “02/20/2008”, Allocation=“Group 4A – Saturdays at 10:00-11:15am from Mar. 29 to May 3 with Robin”, “03/15/2008”, Allocation=“Group 5A – Wednesdays at 10:00-11:15am from Feb. 13 to Mar. 19 with Julie”, “01/30/2008”, Allocation=“Group 6A – Tuesdays at 1:30pm-2:45pm from May 27 to Jul. 1 with Kathy”, “05/13/2008”, Allocation=“Group 7A – Wednesdays at 1:30pm-2:45pm from Aug. 20 to Sep. 24 with Marcy”, “08/04/2008”, Allocation=“Group 8A – Tuesdays at 10:00-11:15am from Aug. 26 to Sep. 30 with Jennifer”, “08/11/2008”, Allocation=“Group 9A – Saturdays at 10:00-11:15am from Sep. 6 to Oct. 11 with Sara”, “08/21/2008”, Allocation=“Group 10A – Mondays at 7:00pm-8:15pm from Sep. 8 to Oct. 13 with Alisa”, “08/25/2008”, Allocation=“Group 1B – Thursdays at 1:30pm-2:45pm from Feb. 28 to Apr. 3 with Kathy”, “01/03/2008”, Allocation=“Group 2B – Tuesdays at 10:00-11:15am from Mar. 29 to Apr. 15 with Jennifer”, “01/15/2008”, Allocation=“Group 3B – Wednesdays at 7:00pm-8:15pm from Apr. 16 to May 21 with Alisa”,“02/20/2008”, Allocation=“Group 4B – Saturdays at 10:00-11:15am from May 10 to Jun. 14 with Marcy”, “03/15/2008”, Allocation=“Group 5B – Wednesdays at 10:00-11:15am from Mar. 26 to Apr. 30 with Julie”, “01/30/2008”, Allocation=“Group 6B – Tuesdays at 1:30pm-2:45pm from Jun. 3 to Jul. 8 with Marcy”, “03/31/2008”, Allocation=“Group 7B – Wednesdays at 1:30pm-2:45pm from Oct. 8 to Nov. 12 with Kathy”, “08/04/2008”, Allocation=“Group 8B – Tuesdays at 10:00-11:15am from Oct. 14 to Nov. 18 with Jennifer”, “08/11/2008”, Allocation=“Group 9B – Saturdays at 10:00-11:15am from Oct. 18 to Nov. 22 with Robin”, “08/21/2008”, Allocation=“Group 10B – Mondays at 7:00pm-8:15pm from Oct. 8 to Nov. 24 with Robin”, “08/25/2008”)
Again, thanks for any help on this terrible constructed function. Any help would be MOST appreciated.
Thanks in advance,
Dan
I am trying to construct a Switch function that concerns two fields:
"Allocation" field and a "Pre-assessment Date" field.
I would like for the "Pre-assessment Date" field to display one of several dates based on what is selected in the "Allocation" field...here's where you might want to scream, curse me out, or simply go to the next thread...please don't...(e.g. if "Allocation" displays "Group 1A – Thursdays at 1:30pm-2:45pm from Jan. 17 to Feb. 21 with Marcy" the field should display "01/03/2008" and so forth
This is the function I've constructed, but is not working (i.e., I'm getting an invalid syntax error message pop up)
=Switch(Allocation=“Group 1A – Thursdays at 1:30pm-2:45pm from Jan. 17 to Feb. 21 with Marcy”, “01/03/2008”, Allocation=“Group 2A – Tuesdays at 10:00-11:15am from Jan. 29 to Mar. 4 with Jennifer”, “01/15/2008”, Allocation=“Group 3A – Wednesdays at 7:00pm-8:15pm from Mar. 5 to Apr. 9 with Robin”, “02/20/2008”, Allocation=“Group 4A – Saturdays at 10:00-11:15am from Mar. 29 to May 3 with Robin”, “03/15/2008”, Allocation=“Group 5A – Wednesdays at 10:00-11:15am from Feb. 13 to Mar. 19 with Julie”, “01/30/2008”, Allocation=“Group 6A – Tuesdays at 1:30pm-2:45pm from May 27 to Jul. 1 with Kathy”, “05/13/2008”, Allocation=“Group 7A – Wednesdays at 1:30pm-2:45pm from Aug. 20 to Sep. 24 with Marcy”, “08/04/2008”, Allocation=“Group 8A – Tuesdays at 10:00-11:15am from Aug. 26 to Sep. 30 with Jennifer”, “08/11/2008”, Allocation=“Group 9A – Saturdays at 10:00-11:15am from Sep. 6 to Oct. 11 with Sara”, “08/21/2008”, Allocation=“Group 10A – Mondays at 7:00pm-8:15pm from Sep. 8 to Oct. 13 with Alisa”, “08/25/2008”, Allocation=“Group 1B – Thursdays at 1:30pm-2:45pm from Feb. 28 to Apr. 3 with Kathy”, “01/03/2008”, Allocation=“Group 2B – Tuesdays at 10:00-11:15am from Mar. 29 to Apr. 15 with Jennifer”, “01/15/2008”, Allocation=“Group 3B – Wednesdays at 7:00pm-8:15pm from Apr. 16 to May 21 with Alisa”,“02/20/2008”, Allocation=“Group 4B – Saturdays at 10:00-11:15am from May 10 to Jun. 14 with Marcy”, “03/15/2008”, Allocation=“Group 5B – Wednesdays at 10:00-11:15am from Mar. 26 to Apr. 30 with Julie”, “01/30/2008”, Allocation=“Group 6B – Tuesdays at 1:30pm-2:45pm from Jun. 3 to Jul. 8 with Marcy”, “03/31/2008”, Allocation=“Group 7B – Wednesdays at 1:30pm-2:45pm from Oct. 8 to Nov. 12 with Kathy”, “08/04/2008”, Allocation=“Group 8B – Tuesdays at 10:00-11:15am from Oct. 14 to Nov. 18 with Jennifer”, “08/11/2008”, Allocation=“Group 9B – Saturdays at 10:00-11:15am from Oct. 18 to Nov. 22 with Robin”, “08/21/2008”, Allocation=“Group 10B – Mondays at 7:00pm-8:15pm from Oct. 8 to Nov. 24 with Robin”, “08/25/2008”)
Again, thanks for any help on this terrible constructed function. Any help would be MOST appreciated.
Thanks in advance,
Dan