I’m new to Airtable and databases in general.
My database will be used to organize a dance competition. I’m trying to construct a formula to calculate how many medals I will need for each competition. The number of medals needed depends on the type of dance and the number of competitors, a few of which are shown in the image below:
My formula keeps returning an error (Sorry, there was a problem saving this field. Invalid formula. Please check your formula text.). I have been through many Airtable articles, tutorials, and forum posts, and still do not know what I have done wrong. Any help is much appreciated.
IF(
AND(
OR({Dance} = “Reel”, {Dance} = “Slip Jig”, {Dance} = “Single Jig”, {Dance} = “Light Jig”, {Dance} = “Treble Jig”, {Dance} = “Hornpipe”, {Dance} = “St Patricks Day”, {Dance} = “Humours of Bandon”, {Dance} = “Job of Journeywork”, {Dance} = “Blackbird”, {Dance} = “Garden of Daisies”, {Dance} = “White Blanket”),
{Number Entered}>=4),
1,
IF(
AND({Dance} = “Reel & Set”, {Number Entered}>=2),
1,
IF(
AND({Dance} = “2-Hand Reel”, {Number Entered}>=4),
2,
IF(
AND(
OR({Dance} = “3-Hand Reel”, {Dance} = “Family Dance”),
{Number Entered}>=4),
3,
IF(
AND(
OR({Dance} = “4-Hand Reel”, {Dance} = “Walls of Limerick”),
{Number Entered}>=4),
4,
IF(
AND(
OR({Dance} = “Ceili”, {Dance} = “Ceili Club & Folk”),
{Number Entered}>=4),
8,
0))))))