+ Reply to Thread
Results 1 to 2 of 2

Check Count of Buildings Until Day 1 of Every Month

  1. #1
    Registered User
    Join Date
    06-11-2017
    Location
    Mexico
    MS-Off Ver
    Excel 2016
    Posts
    10

    Check Count of Buildings Until Day 1 of Every Month

    Hello community!

    I have been trying to solve this problem for hours but have not been able to reach the desired result.

    What I want to do, is, to determine the amount of Buildings available until the first day of each month. For this, I have to measure how many "first day (i.e. 1/1/2022 - 2/1/2022)" fall within a date range and based on that, add up the amounts of the building that were active on each month of a all applicable years.

    There are some buildings that are still available while others are no longer.

    I have been trying to reach the result by doing different formulas, so don't pay much attention to what I have accomplished so far

    I attach the file for your reference.

    Thank you!!
    Attached Files Attached Files
    Last edited by raksone; 06-23-2022 at 09:35 PM.

  2. #2
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    1,842

    Re: Check Count of Buildings Until Day 1 of Every Month

    Maybe in D3 try:

    =YEAR([@[End Date]])-YEAR([@[Start Date]])-IF([@[Start Date]]>DATE(YEAR([@[Start Date]]),MONTH(1&D$2),1),1,0)+IF(MONTH([@[End Date]])>=MONTH(1&D$2),1,0)

    Copy (don't drag) across.

+ 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. Replies: 1
    Last Post: 04-25-2021, 05:50 AM
  2. VBA to copy data across a range based on the number of buildings required
    By The_Snook in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-07-2018, 06:23 AM
  3. [SOLVED] VBA to replicate a range of cells based on the number of buildings required
    By The_Snook in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-22-2018, 11:09 AM
  4. Finding Vacancy Percentage Month Wise from Check in and Check out Date
    By HemZone in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-29-2015, 10:51 AM
  5. Not the most efficient at this better off suited constructing buildings
    By Carpenter1375 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 01-06-2014, 01:03 AM
  6. How to check if month in column B is before current month
    By John74 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-17-2009, 04:44 PM
  7. Replies: 1
    Last Post: 10-09-2007, 11:45 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