Looking for a formular to help with a rooming list...
I have lots of passengers on separate rows.
I have a heading row of dates.
I then have a sequence of 1's in a grid that show which nights a person will check in for 1 over night stay.
In the first example, my traveller will check in on 17/06 and check out on 24/06.
I am currently having to update the columns manually when somebody tags me in a comment to say the grid has chnaged.
I wish to have a column called check in and check out, which auto updates whenever 1's in the grid are updated... please help :)
Answers
-
Using your idea of "MATCH FUNCTION," colum38, I created formulas for check-in and check-out.
MATCH
=MATCH(1, [TUESDAY 11/06]1:[MONDAY 24/06]1)
Total Nights
=COUNTIF([TUESDAY 11/06]@row:[MONDAY 24/06]@row, 1)
Check In
=DATE(2024, 6, 10) + MATCH@row
Check out
=[Check In]@row + [Total Night]@row
However, I found your system hard to maintain, as you need a new sheet as the columns like TUESDAY 11/06 get changed.
I would use Smartsheet's Gannt View to show which days are already reserved and let the user edit the Check In and Check Out columns, as shown in the image below.
The formula for Hotel & Room Type & Nights is as follows, whose value is shown in the gannt chart.
=Hotel@row + " - " + [Room Type]@row + " " + ([Check Out]@row - [Check In]@row) + "nights"
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!