+ Reply to Thread
Results 1 to 25 of 25

Need to work out occupancy rates

  1. #1
    Registered User
    Join Date
    02-19-2024
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    20

    Need to work out occupancy rates

    Good afternoon

    I need to work out the occupancy rates on the attached spreadsheet per location in column A

    I have placed the locations and their occupancy in Cells B1 & B2, C1 & C2, D1 & D2

    I need to work out the relevant occupancy rate whilst also filtering the locations.

    Hope some one can help me.

    Many Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Need to work out occupancy rates

    How do you define Occupancy Rate? Is it the number of rooms occupied divided by the number of rooms available for a particular site and within a particular time period?

    Pete

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Need to work out occupancy rates

    how do you calculate occupancy rate ?

    is that the total number of days * the number of rooms = total possible

    douglas road for February would be (this year is a leapyear) - so is that 29 days * 13 rooms
    OR - what - confused - sorry
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    02-19-2024
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    20

    Re: Need to work out occupancy rates

    Yes thats right, apologies should have been clearer
    The Top shows how many rooms are available at a location at one time.

    I have worked out how many rooms are occupied on a given date (Column B), I just need to work out the occupancy rate and be able to filter the location relating to the information and to update automatically when I update the data

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Need to work out occupancy rates

    douglas road has 3 rows - all with 12/2/24
    so what would be the occupancy rate in those rows ?? how many days are they occupied
    I just need to work out the occupancy rate and be able to filter the location relating to the information and to update automatically when I update the data
    still not following - can you give some expected results .. and WHY

    FILTER on location - whats the location is that HOME

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Need to work out occupancy rates

    So, you want to report this for each month?

    I'm still confused about your data - you have 5 entries all for 17th Nov 2023 for Woodland View showing 11 rooms occupied (i.e. 55 in total), but you only have 11 rooms available. There are other anomalies like this.

    Pete

  7. #7
    Registered User
    Join Date
    02-19-2024
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    20

    Re: Need to work out occupancy rates

    Apologies

    At the top is the total amount of rooms available so for Woodland View, there should be 11 rooms available at any one time
    The dates - if there are multiple dates for example 12/02/2024 show 3 at Douglas Road, that's for 3 separate people so the total would be 3 in the room occupancy. The data you refer to on the 17/11/23 shows 5 entries but has 11 that would mean 11 rooms are occupied (This data is a snippet from a larger piece but it would not let me post 3000 items!!, there ate actually 11 entries on my actual report)
    The occupancy rate is a percentage for example 3 people at Douglas Road would be 23% but I need to work out a formula that updates the occupancy rate automatically whilst filtering out the 3 separate homes.

    Hope this clarifies things a bit

  8. #8
    Registered User
    Join Date
    02-19-2024
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    20

    Re: Need to work out occupancy rates

    Yes location is the home

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Need to work out occupancy rates

    are you after the number of people in a room
    so is that 13 people cn be accommodated in douglas road
    and then you say 3 / 13 = 23%

    I thought it was 13 rooms in douglas road and you wanted how many rooms where occupied in a month - as i mentioned in my first reply
    so 29 days in Feb - 13 rooms - that means 13* 29 is the max number of rooms available in feb
    then how many rooms where filled in the month

    you have 3 entries in the data - because each row is recorded for each person , so in the real data - you have 11 rows for friday 17/11/23

    11/11 = 100%
    BUT
    what if you have 3 people in on 1/2/24 and then 10 people in on the 2/2/24 and then 4 people in on the 3/2/24

    if you filter on douglas road
    that will be 17 rows of entries
    3 for the 3 people
    10 for the 10 people
    4 for the 4 people

    whats thats as a % then
    3/13
    10/13
    4/13
    OR
    becuase all in Feburary
    17/13

    still not following - hopefully Pete_UK may understand

  10. #10
    Registered User
    Join Date
    02-19-2024
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    20

    Re: Need to work out occupancy rates

    I know what I am trying to do, it is just explaining it to someone in the written form that is the hard part

    I am after the % of the rooms that are being filled.
    So if there are 10 rooms taken at Woodland View for example, that would be 91% of the rooms taken
    The formula for the occupancy I have worked out it is Rooms Occupied/Rooms Available. It will bring up a 0.0 no which then I converted into a percentage.
    The main part is to incorporate that formula whilst filtering out the homes to match the data.
    So I need a formula to work out the room occupancy percentage and to filter out different homes.
    Last edited by Jake05; 02-20-2024 at 01:00 PM.

  11. #11
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Need to work out occupancy rates

    The "filtering", as you put it, is not difficult at all - you can use this formula in H2:

    =SUMIFS($B$4:$B$27,$E$4:$E$27,B$1)

    to count all the numbers in column B which relate to Woodland View, and copy it across for the other locations. However, the formula does not give a breakdown by month, nor does it take account of the duplicates that you have in your data - it will give a result of 108 in H2, which is clearly ludicrous.

    You need to take account of the actual occupancy for each day within that month, and then compare that with the number of days in each month times the number of available rooms per day. Your data in the pink area does not record the rooms occupied on a daily basis (perhaps your larger list would do so), and you have duplicated data that I don't fully understand, so it is not really possible to give you the occupancy rate from the data you have supplied to us.

    Hope this helps.

    Pete
    Last edited by Pete_UK; 02-20-2024 at 01:28 PM.

  12. #12
    Registered User
    Join Date
    02-19-2024
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    20

    Re: Need to work out occupancy rates

    I appreciate your patience with this, I am very new at Excel and I have been thrown in the deep-end in having to create reports

    Ah I see
    I have been thinking about this overnight and so I think the best way is to remove all duplicate dates. that will still give me how many rooms are occupied for the date in question.
    What would be the best way to do this? I am thinking a formula so when any new data comes in (New data is updated from column G on my actual report), it would automatically remove duplicates.
    The columns in pink already have formulas in them
    So in B2, the formula is =IF(E4="Douglas Road", COUNTIF(D:D, D4), IF(E4="Silver Birch", COUNTIF(D:D, D4), IF(E4="Woodland View", COUNTIF(D:D, D4), 0)))
    In C2 it is =RIGHT(D4,LEN(D4)-FIND(" ",D4))
    In D2 it is =CHOOSE(WEEKDAY(H4), "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday") & " " & TEXT(H4, "dd/mm/yyyy") (H4 is part of my master file)
    in E2 it is =IF(M4="Douglas Road", "Douglas Road", IF(M4="Silver Birch", "Silver Birch", IF(M4="Woodland View", "Woodland View", "Other"))) (AGAIN E2 is in my Master File)
    In F2 it is =IF(H4<>"", TEXT(H4, "mmmm"), "") (H4 is in part ofmy master file)

    I think if I can remove the duplicate dates from the pink columns, then my formula of =B4/$B$2 would work, then there would be no need to filter the homes. I can then pivot them from that.

    Would a new worksheet work better?

    Does this sound better?

  13. #13
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Need to work out occupancy rates

    just off the top of my head - you could create a NEW range using unique() and even a sort - otherwise its VBA for removing duplicates automatically

    =SORT(UNIQUE(B4:F27),4)

    But it would be useful to see the new spreadsheet with the calculations and how you are using
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    02-19-2024
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    20

    Need to work out occupancy rates

    Thanks for everyone helping in my previous thread
    I have solved the issue but now need this one solving

    I have taken out all the duplicate dates so should only show one date.

    I need to now calculate the room occupancy rate as a %

    I have a formula so in this case it would be = Rooms Occupied / Rooms available. However as I have 3 sperate homes with differing availabilites, I need to filter the homes as well as sort out the occupancy rates.
    Is there a formula I can use that would help me with this?

  15. #15
    Registered User
    Join Date
    02-19-2024
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    20

    Re: Need to work out occupancy rates

    It has worked
    I have one last query on this and I should be good to go for a bit(See new attachment)

  16. #16
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Need to work out occupancy rates

    where is the new spreadsheet - still has the old one on your first post

  17. #17
    Registered User
    Join Date
    02-19-2024
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    20

    Re: Need to work out occupancy rates

    This is the new Sheet without duplicate dates
    Attached Files Attached Files

  18. #18
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Need to work out occupancy rates

    So in B2, the formula is =IF(E4="Douglas Road", COUNTIF(D:D, D4), IF(E4="Silver Birch", COUNTIF(D:D, D4), IF(E4="Woodland View", COUNTIF(D:D, D4), 0)))
    In C2 it is =RIGHT(D4,LEN(D4)-FIND(" ",D4))
    In D2 it is =CHOOSE(WEEKDAY(H4), "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday") & " " & TEXT(H4, "dd/mm/yyyy") (H4 is part of my master file)
    in E2 it is =IF(M4="Douglas Road", "Douglas Road", IF(M4="Silver Birch", "Silver Birch", IF(M4="Woodland View", "Woodland View", "Other"))) (AGAIN E2 is in my Master File)
    In F2 it is =IF(H4<>"", TEXT(H4, "mmmm"), "") (H4 is in part ofmy master file)
    dont see any of those formulas

    and still I'm not following -Sorry

    is that now 3 rooms occupied OR as you said before 3 people

    if now back to rooms
    then if you put a date you are interested , and real dates in the column F - then you could
    use the date to filter the months - and also the HOME to the HOME you want to measure

    Based on the month - that can multiple the days in month - by the number of rooms for that HOME
    AND sum all the ROOM Occupied by HOME and the month

    NOT perfect here , as the month is text
    but something like
    =SUM(FILTER(B4:B19,(E4:E19=E2)*(F4:F19=F2)))/(B2*29)

    as i say real dates would be better - i will work on later , if time
    Attached Files Attached Files

  19. #19
    Registered User
    Join Date
    02-19-2024
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    20

    Re: Need to work out occupancy rates

    Thanks for the reply.

    Ignore the above formulas that I mentioned. This is brand new in relation to the most recent sheet.

    This is all I need to concentrate on now:

    I need to now calculate the room occupancy rate as a %

    I have a formula so in this case it would be = Rooms Occupied / Rooms available. However as I have 3 sperate homes with differing availabilites, I need to filter the homes as well as sort out the occupancy rates.
    Is there a formula I can use that would help me with this?

    So in this example, the total rooms available per home are in columns B2, C2 and D2
    Column B is the rooms occupied on that date
    To get the room occupancy it would be =B4/$B$2. This would give me the occupancy as a decimal which would need to be converted into a %.

    But as I have multiple homes in the table with varying total rooms available, I need to create a formula that shows the correct occupancy rate % per home whilst filtering the homes so the records match

    Hope this clarifies things

  20. #20
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Need to work out occupancy rates

    OK<
    so I have changed to real dates
    Now you put in the HOME you want to measure - in E2 (yellow)
    and the date you are interested in - so the 1st of a month and year - 1/2/23
    then it will calculate the occupancy
    =SUM(FILTER(B4:B19,(E4:E19=E2)*(F4:F19=F2)))/(INDEX(B2:D2,MATCH(E2,B1:D1,0))*DAY(EOMONTH(F2,0)))
    based on
    How many entries for that HOME for that MONTH
    SUM(FILTER(B4:B19,(E4:E19=E2)*(F4:F19=F2)))

    Then divide that by the number of rooms available and days in that month
    /(INDEX(B2:D2,MATCH(E2,B1:D1,0))*DAY(EOMONTH(F2,0)))

    column I , J , K etc - just show those working as you change the criteria

    BUT its not 3% as you mention earlier

    Douglas is 0.8%
    NOTE the spelling was wrong in C1 or wrong in E
    Attached Files Attached Files

  21. #21
    Registered User
    Join Date
    02-19-2024
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    20

    Re: Need to work out occupancy rates

    Thats Great and will come in useful in the future however a bit complex to what I am currently trying to achieve

    To keep it very simple (for my tiny head!!)
    Column A, Need the occupancy rate as a %
    total room availability per home in B2, C2, D2
    Occupied rooms are in Column B
    Need to calculate the rate whilst filtering the homes with the correct parameters

    I can set 3 separate sheets up to show this but I want to achieve this in 1 sheet

  22. #22
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Need to work out occupancy rates

    not following again
    however a bit complex to what I am currently trying to achieve
    so post some expected results - STILL NOT following
    Column A, Need the occupancy rate as a %
    So how is that actually calculate in column A - its just 1 row

    Rooms Occupied / Rooms available.
    so is that simply

    you have a space at the end of woodland view - i removed

    =B4/INDEX($B$2:$D$2,MATCH(E4,$B$1:$D$1,0))

    works out the percent (not sure it means much) NOT occupancy as i understand it

    otherwise

    for row 4 to 19 - put what the % you think it is and why
    Attached Files Attached Files

  23. #23
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,982

    Re: Need to work out occupancy rates

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so. Cross-posts are allowed but you must provide a link to your posts on other sites.

    Please see Forum Rule #7 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    I am providing the link because you are a new member. However, the first thing you should do before posting as a new member here or anywhere is to read the rules.

    https://www.mrexcel.com/board/thread...ilter.1254338/
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  24. #24
    Registered User
    Join Date
    02-19-2024
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    20

    Re: Need to work out occupancy rates

    It is now all sorted.

    Many Thanks for your help with this and your patience. It is very much appreciated
    Last edited by Jake05; 02-21-2024 at 12:08 PM.

  25. #25
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Need to work out occupancy rates

    It is now all sorted.
    What was sorted / solution for others looking and for me to understand as well please

+ 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. I am trying to out together an occupancy for my nursery.
    By Jennyz1231 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-25-2023, 08:31 PM
  2. Replies: 3
    Last Post: 08-24-2021, 10:54 PM
  3. Replies: 3
    Last Post: 12-08-2020, 12:22 PM
  4. Function to obtain currency exchange rates - How do I make it work?
    By carlito2002wgn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2019, 10:57 PM
  5. working out weekday rates vs weekend rates
    By scott11106 in forum Excel General
    Replies: 3
    Last Post: 08-29-2015, 12:14 PM
  6. Replies: 4
    Last Post: 11-21-2013, 08:24 PM
  7. Inserting function that will rank rates of occupancy
    By roadrunnerside8 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-06-2013, 01:15 PM

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