+ Reply to Thread
Results 1 to 5 of 5

Distinct count with 3 conditions (building and 2 dates)

  1. #1
    Registered User
    Join Date
    03-20-2024
    Location
    CA
    MS-Off Ver
    365
    Posts
    3

    Distinct count with 3 conditions (building and 2 dates)

    Hello,

    I need help determining the number of distinct people who occupied a house within a 1 year time frame.

    The conditions that need to be met includes the following:
    1) Building number needs to match the identified building number
    2 & 3) Date of occupancy needs to be between the identified date and (identified date minus 1 year)

    I almost have a sum product working, but I don't know how to get the distinct value part.

    Thank you for any hints or tips you can provide.

    Excel_Help_V2.xlsx

    This was solved using the ROWS>UNIQUE>FILTER functions as identified by forum poster. Thank you!!!
    Last edited by Anais_2024; 03-21-2024 at 11:36 AM.

  2. #2
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Distinct count with 3 conditions (building and 2 dates)

    Use this formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-20-2024
    Location
    CA
    MS-Off Ver
    365
    Posts
    3

    Re: Distinct count with 3 conditions (building and 2 dates)

    Thank you!

    I think this is a really really good start. I think I need to adjust it so that [DATE]<12/31/2021 AND [DATE]>12/31/2020.

    I'll see if I can do it myself.

  4. #4
    Registered User
    Join Date
    03-20-2024
    Location
    CA
    MS-Off Ver
    365
    Posts
    3

    Re: Distinct count with 3 conditions (building and 2 dates)

    Quote Originally Posted by DJunqueira View Post
    Use this formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thank you!

    I think this is a really really good start. I think I need to adjust it so that [DATE]<12/31/2021 AND [DATE]>12/31/2020.

    I'll see if I can do it myself.

  5. #5
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Distinct count with 3 conditions (building and 2 dates)

    Tks for the feedback, glad to help.

+ 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. [SOLVED] Count distinct, multiple conditions and time range
    By Komarov in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-08-2022, 05:26 AM
  2. Replies: 7
    Last Post: 10-14-2021, 03:49 AM
  3. Getting unique count between two dates with multiple conditions
    By bala04msw in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-11-2021, 11:40 PM
  4. [SOLVED] Formula to count distinct project codes (exclude duplicates) between dates
    By HKPHOOY in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-21-2018, 12:30 PM
  5. [SOLVED] Count between two dates with two conditions
    By rhett7660 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-30-2017, 01:11 PM
  6. Count distinct records that meet multiple conditions
    By rubthebuddha in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-18-2013, 09:54 AM
  7. [SOLVED] Multiple conditions and count if with dates
    By spoursy in forum Excel General
    Replies: 4
    Last Post: 04-30-2012, 04:19 PM

Tags for this Thread

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