Check inventory in two columns and change symbol column.

Hello all !

I have a challenge for you guys. I have a sheet where we book groups for a venue. Some of those groups will also book a space for a cocktail before the show. There are 3 spots available per day for a cocktail. I would like to have a column that tells me if the cocktail area is available for that date.

I guess I can't wrap my head around the proper formula. This is what I had but it doesnt work properly :

=IF([Espace cocktail]@row = "", "", COUNTIFS([Date du Spectacle]:[Date du Spectacle], [Date du Spectacle]@row, [Espace cocktail]:[Espace cocktail], [Espace cocktail]@row > 1, "No"))

I might need an INDEX/MATCH formula but I need your help with that!

As you can see in the screenshot bellow, I have several groups on the 16th of july. Right now, two have booked the same space for their cocktail so I should have a red X.


Tags:

Answers

  • Devin Lee
    Devin Lee ✭✭✭✭✭
    edited 02/16/23

    =IF([Espace cocktail]@row = "", "", IF(3 - COUNTIFS([Espace cocktail]:[Espace cocktail], <>"", [Date du Spectacle]:[Date du Spectacle], [Date du Spectacle]@row) < 1, "No", 3 - COUNTIFS([Espace cocktail]:[Espace cocktail], <>"", [Date du Spectacle]:[Date du Spectacle], [Date du Spectacle]@row)))


    You could also have it list the number of spaces using this

    =IF(3 - COUNTIFS([Espace cocktail]:[Espace cocktail], <>"", [Date du Spectacle]:[Date du Spectacle], [Date du Spectacle]@row) < 1, "No", 3 - COUNTIFS([Espace cocktail]:[Espace cocktail], <>"", [Date du Spectacle]:[Date du Spectacle], [Date du Spectacle]@row))

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!