Formula help - Getting Unparseable!
In my formula, I am taking data from three columns 1)if my Room Type field = King and it falls in between the 2) hotel check-in and 3) hotel check-out date to give me a 1. I need to know how many Queen Rooms I need on any given day.
Here is my formula:
=([# of King Rooms Needed]@row = "King") * IF(F(AND(DATE(2023, 7, 29) >= [Hotel Arrival Date]@row, DATE(2023, 7, 29) < [Hotel Departure Date]@row), 1, 0))
I have also tried this:
=COUNTIF({[Room Type]2 = "king"}, (AND(DATE(2023, 7, 29) >= [Hotel Arrival Date]@row, DATE(2023, 7, 29) < [Hotel Departure Date]@row), 1, 0))
Best Answer
-
Are you able to provide a screenshot for reference?
It seems like you might need something along the lines of:
=IF(AND([Room Type]@row = "King", [Hotel Arrival Date]@row<= DATE(2023, 7, 29), [Hotel Departure Date]@row>= DATE(2023, 7, 29)), 1)
Answers
-
Are you able to provide a screenshot for reference?
It seems like you might need something along the lines of:
=IF(AND([Room Type]@row = "King", [Hotel Arrival Date]@row<= DATE(2023, 7, 29), [Hotel Departure Date]@row>= DATE(2023, 7, 29)), 1)
-
Perfect that worked. Thank you so much.
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.6K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 466 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 64 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!