+ Reply to Thread
Results 1 to 9 of 9

Find count of dates based on between two dates and update dates in another cell

  1. #1
    Registered User
    Join Date
    09-19-2013
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    61

    Find count of dates based on between two dates and update dates in another cell

    Hi There,

    I have two dates “From date” and “To date” in one sheet and another holiday date in next sheet.
    I should get the “Total count of Holidays dates between from dates (column C) and To date (Column D) by referring holiday sheet date
    And in next column those date should appear. I have update the sample.

    Thanks and Regards,
    Senthil Murugan
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: Find count of dates based on between two dates and update dates in another cell

    UDF:
    Please Login or Register  to view this content.
    Use:

    =ConcatAll(IF(('Holiday Date'!$A$2:$A$11>=C2)*('Holiday Date'!$A$2:$A$11<=D2),TEXT('Holiday Date'!$A$2:$A$11,"dd-mmm-yy"),""),", ")

    Enter with Ctrl+Shift+Enter.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-19-2013
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    61

    Re: Find count of dates based on between two dates and update dates in another cell

    Thanks it is working. just check with you column G, working through VB. Can this be made in excel formula without VB?

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Find count of dates based on between two dates and update dates in another cell

    Try this
    IN G2 then drag down.

    Please Login or Register  to view this content.
    ARRAY formula In H2 then dragged across up to column P. Pl see note below.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  5. #5
    Registered User
    Join Date
    09-19-2013
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    61

    Re: Find count of dates based on between two dates and update dates in another cell

    Hi kvsrinivasamurthy,

    Thanks for the updates.

    Holiday Date sheet, the list given sample, this may extend to 30 rows also, Therefore any option to give more range?
    instead of assigning the details given in column h to p, this can be clubbed in one cell?

    Thanks & Regards,
    Senthil Murugan

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Find count of dates based on between two dates and update dates in another cell

    Changed formula for 30 rows. Change 30 in formula to change the number of rows. Blank rows are included.
    Please Login or Register  to view this content.
    To have all dates in one cell UDF is required. You can change the Columns range.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-19-2013
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    61

    Re: Find count of dates based on between two dates and update dates in another cell

    Hi,
    Thanks..
    i was trying to extended the formula in Column G also and found that it is showing duplication dates in case if dates repeated twice in Holiday date sheet. is there way to fix this?
    from column H we are extending to multiple cells based on the number of days given in Holiday sheet (Example 30 rows) is there way cut down this?

    Regards.. Senthil Murugan

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Find count of dates based on between two dates and update dates in another cell

    This formula in I2 avoids the duplicate entries in Holiday Date sheet. A blank column H is inserted which is necessary for formula to work.
    Instead of this data validation can be done in Holiday Date sheet so that no duplicate entries can be done. In sheet Holiday Date (2) A column A2:A30 is validated. Check up.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    09-19-2013
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    61

    Re: Find count of dates based on between two dates and update dates in another cell

    Hi kvsrinivasamurthy.. 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. Late count based on number of days between two dates for a list of dates
    By Keats713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-03-2017, 11:03 PM
  2. Late count based on number of days between two dates for a list of dates
    By Keats713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-03-2017, 06:35 PM
  3. Late count based on number of days between two dates for a list of dates
    By Keats713 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-03-2017, 02:19 PM
  4. Replies: 4
    Last Post: 10-17-2013, 09:59 AM
  5. [SOLVED] Auto filling dates based on previously entered dates and averaging numbers if dates equal
    By grambograham in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2012, 03:21 PM
  6. Count Number Of Dates In Same Cell Between Two Dates
    By yoshi_5 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-23-2012, 11:24 AM
  7. [SOLVED] count strings based on dates if find duplicate consider it one
    By farrukh in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-10-2012, 01:06 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