help needed, date and times to and from and running total help

zebturner

New Member
Joined
Nov 12, 2015
Messages
3
Hi, my friend has a hotel and wants me to devise a spreadsheet, I have guest date and time of arrival in column B and date and time left in C and he wants me to add a column that will calculate at any point if the guest occupancy reaches 9. I am stumped, any help would be greatly appreciated, thanks in advance.

[TABLE="width: 528"]
<COLGROUP><COL style="WIDTH: 145pt; mso-width-source: userset; mso-width-alt: 7058" width=193><COL style="WIDTH: 145pt; mso-width-source: userset; mso-width-alt: 7058" width=193><COL style="WIDTH: 116pt; mso-width-source: userset; mso-width-alt: 5632" width=154><COL style="WIDTH: 122pt; mso-width-source: userset; mso-width-alt: 5924" width=162><TBODY>[TR]
[TD="class: xl63, width: 193, bgcolor: transparent"]Guest Name[/TD]
[TD="class: xl63, width: 193, bgcolor: transparent"]Date & Time of arrival[/TD]
[TD="class: xl64, width: 154, bgcolor: transparent"]Date and time of leaving[/TD]
[TD="class: xl63, width: 162, bgcolor: transparent"]Time present[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: #92d050"] [/TD]
[TD="class: xl66, bgcolor: #92d050"]28/08/2015 15:00[/TD]
[TD="class: xl66, bgcolor: #92d050"]01/09/2015 13:35[/TD]
[TD="class: xl72, bgcolor: #92d050"]03 22:35[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: #92d050"] [/TD]
[TD="class: xl66, bgcolor: #92d050"]28/08/2015 15:30[/TD]
[TD="class: xl66, bgcolor: #92d050"]04/09/2015 11:45[/TD]
[TD="class: xl72, bgcolor: #92d050"]06 20:15[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: #ffc000"] [/TD]
[TD="class: xl68, bgcolor: #ffc000"]30/08/2015 10:25[/TD]
[TD="class: xl68, bgcolor: #ffc000"]03/09/2015 12:30[/TD]
[TD="class: xl73, bgcolor: #ffc000"]04 02:05[/TD]
[/TR]
[TR]
[TD="class: xl69, bgcolor: #92d050"] [/TD]
[TD="class: xl70, bgcolor: #92d050"]01/09/2015 19:00[/TD]
[TD="class: xl71, bgcolor: #92d050"]05/09/2015 12:40[/TD]
[TD="class: xl74, bgcolor: #92d050"]03 17:40[/TD]
[/TR]
[TR]
[TD="class: xl69, bgcolor: #92d050"] [/TD]
[TD="class: xl70, bgcolor: #92d050"]02/09/2015 15:20[/TD]
[TD="class: xl71, bgcolor: #92d050"]05/09/2015 12:40[/TD]
[TD="class: xl74, bgcolor: #92d050"]02 21:20[/TD]
[/TR]
</TBODY>[/TABLE]
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I'm going to assume you mean you want to account for if time present is greater than or equal to 9. Use conditional formatting. >[9]:00:00
 
Upvote 0
I'm going to assume you mean you want to account for if time present is greater than or equal to 9. Use conditional formatting. >[9]:00:00

Thanks for the reply Warpigl3t, no what i want is a prompt that if at any time the total present in the hotel reaches 9 i want to be warned. imagine that you are looking at the spreadsheet at the end of the month and want to work out if at any point there were 9 guests present in the hotel.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top