+ Reply to Thread
Results 1 to 9 of 9

Creating Occupancy Report Based on Guest List

  1. #1
    Registered User
    Join Date
    06-17-2014
    Location
    Male'
    MS-Off Ver
    Office 2010
    Posts
    31

    Creating Occupancy Report Based on Guest List

    Hi,

    I have a data which is guest staying in my hotel with the dates. (file attached)
    I want to create an occupancy report in the format i have created. (File attached)
    Attached Files Attached Files
    Last edited by AliGW; 02-09-2019 at 04:09 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Help me to create a formula to fetch data

    Please take a moment to re-read forum rule #1 and then amend your thread title to something that better explains your problem. Changing your thread title is not optional, which means you must change it. Thanks!

    • Use concise, accurate thread titles.
    • Your post title should describe your problem, not your anticipated solution.
    • Use terms appropriate to a Google search - poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice tell us nothing.
    • Responding to a request to change your thread title by doing so is mandatory.

    As you are relatively new here and by way of an example, I have done it for you this time.
    Last edited by AliGW; 02-09-2019 at 04:09 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Creating Occupancy Report Based on Guest List

    Hi

    See if this helps you

    I create 3 helper columns and I assume date to report is the 'Check-out Date'

    In column K use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In column L use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In column M use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    where daysm is a defined name
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In a new sheet I use
    in A1 the year to report, in B1:M1 the month and in A2:A32 the day to count
    In B2 use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and drag down and forward to get the report for a year.
    Attached Files Attached Files

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Creating Occupancy Report Based on Guest List

    Number of persons stays on date:

    for A2-A31 with 1/1/19 - 31/1/19 put into B2

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  5. #5
    Registered User
    Join Date
    06-17-2014
    Location
    Male'
    MS-Off Ver
    Office 2010
    Posts
    31

    Re: Creating Occupancy Report Based on Guest List

    Hi,

    Thanks for the help. Your formula works till 22nd December.
    When the check-out date is in January, your formula is not considering the dates in December.
    But the result i want is only for December.

    Please refer the result sheet i attached on main thread "Ocupancy_Dec 18.csv"

    Thanks

  6. #6
    Registered User
    Join Date
    06-17-2014
    Location
    Male'
    MS-Off Ver
    Office 2010
    Posts
    31

    Re: Creating Occupancy Report Based on Guest List

    Quote Originally Posted by José Augusto View Post
    Hi

    See if this helps you

    I create 3 helper columns and I assume date to report is the 'Check-out Date'

    In column K use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In column L use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In column M use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    where daysm is a defined name
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In a new sheet I use
    in A1 the year to report, in B1:M1 the month and in A2:A32 the day to count
    In B2 use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and drag down and forward to get the report for a year.



    Hi,

    Thanks for the help. Your formula works till 22nd December.
    When the check-out date is in January, your formula is not considering the dates in December.
    But the result i want is only for December.

    Please refer the result sheet i attached on main thread "Ocupancy_Dec 18.csv"

    Thanks

  7. #7
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Creating Occupancy Report Based on Guest List

    Hi

    I correct the formulas and I have used a new helper column, N.
    Formulas used in K2:L2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula used to report
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    See the file
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-17-2014
    Location
    Male'
    MS-Off Ver
    Office 2010
    Posts
    31

    Re: Creating Occupancy Report Based on Guest List

    Hi,

    That works. Thank you very much for the help

  9. #9
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Creating Occupancy Report Based on Guest List

    You are welcome.

    Do not forget to mark this thread as SOLVED using Thread Tools from the menu link above.

    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Formula to fetch the data from other sheet
    By FUN2BALA in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 07-25-2018, 06:34 AM
  2. [SOLVED] Create formula that can fetch the data on criteria
    By leprince2007 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 12-04-2016, 03:30 AM
  3. [SOLVED] Need Macro/Formula to Fetch the data from table
    By gunjan8882 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-16-2016, 08:12 AM
  4. Replies: 12
    Last Post: 12-20-2013, 10:04 AM
  5. Replies: 1
    Last Post: 12-22-2010, 09:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1