Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-20-2008, 07:13 PM
=?Utf-8?B?cGVhYm9keQ==?=
 
Posts: n/a
calculate per day usage with a number range

I have the check in date and the check out date for a large group. I would
like to see how many rooms are used per day for the period.
Column A = Check in date (ex: 2-feb)
Column B = Check out date (ex: 10-feb)
How can I tell how many rooms were used on 6-feb, how many on 7-feb, etc?

Thanks so much for your help!
Reply With Quote
  #2 (permalink)  
Old 07-20-2008, 07:28 PM
=?Utf-8?B?ZGFkZHlsb25nbGVncw==?=
 
Posts: n/a
RE: calculate per day usage with a number range

Put the date of interest (e.g. 6-feb-2008) in D2 then in E2 use this formula

=SUMPRODUCT((A$2:A$100<=D2)*(B$2:B$100>=D2))

You can copy the formula down to calculate for more date in column D

"peabody" wrote:

> I have the check in date and the check out date for a large group. I would
> like to see how many rooms are used per day for the period.
> Column A = Check in date (ex: 2-feb)
> Column B = Check out date (ex: 10-feb)
> How can I tell how many rooms were used on 6-feb, how many on 7-feb, etc?
>
> Thanks so much for your help!

Reply With Quote
  #3 (permalink)  
Old 07-21-2008, 12:59 AM
=?Utf-8?B?cGVhYm9keQ==?=
 
Posts: n/a
RE: calculate per day usage with a number range

I tried this and it does not work. Close, but not quite. As you can see
from below, it returns 4 for 2/4/07 when the correct number of rooms for that
night is 2.
A B D E
2/1/2007 2/4/2007
2/1/2007 2/5/2007 2/4/2007 4
2/3/2007 2/5/2007
2/2/2007 2/4/2007



1-Feb 2-Feb 3-Feb 4-Feb 5-Feb
1 1 1
1 1 1 1
1 1
1 1


"daddylonglegs" wrote:

> Put the date of interest (e.g. 6-feb-2008) in D2 then in E2 use this formula
>
> =SUMPRODUCT((A$2:A$100<=D2)*(B$2:B$100>=D2))
>
> You can copy the formula down to calculate for more date in column D
>
> "peabody" wrote:
>
> > I have the check in date and the check out date for a large group. I would
> > like to see how many rooms are used per day for the period.
> > Column A = Check in date (ex: 2-feb)
> > Column B = Check out date (ex: 10-feb)
> > How can I tell how many rooms were used on 6-feb, how many on 7-feb, etc?
> >
> > Thanks so much for your help!

Reply With Quote
  #4 (permalink)  
Old 07-21-2008, 05:31 AM
Dave Mills
 
Posts: n/a
Re: calculate per day usage with a number range

It is assuming the check out date is counted as occupied. Change the >= to >


On Sun, 20 Jul 2008 17:59:01 -0700, peabody <peabody@discussions.microsoft.com>
wrote:

>I tried this and it does not work. Close, but not quite. As you can see
>from below, it returns 4 for 2/4/07 when the correct number of rooms for that
>night is 2.
>A B D E
>2/1/2007 2/4/2007
>2/1/2007 2/5/2007 2/4/2007 4
>2/3/2007 2/5/2007
>2/2/2007 2/4/2007
>
>
>
>1-Feb 2-Feb 3-Feb 4-Feb 5-Feb
>1 1 1
>1 1 1 1
> 1 1
> 1 1
>
>
>"daddylonglegs" wrote:
>
>> Put the date of interest (e.g. 6-feb-2008) in D2 then in E2 use this formula
>>
>> =SUMPRODUCT((A$2:A$100<=D2)*(B$2:B$100>=D2))
>>
>> You can copy the formula down to calculate for more date in column D
>>
>> "peabody" wrote:
>>
>> > I have the check in date and the check out date for a large group. I would
>> > like to see how many rooms are used per day for the period.
>> > Column A = Check in date (ex: 2-feb)
>> > Column B = Check out date (ex: 10-feb)
>> > How can I tell how many rooms were used on 6-feb, how many on 7-feb, etc?
>> >
>> > Thanks so much for your help!

--
Dave Mills
There are 10 type of people, those that understand binary and those that don't.
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:46 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108