+ Reply to Thread
Results 1 to 36 of 36

Counting of dates in between given two dates, those are only finding in database

  1. #1
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Counting of dates in between given two dates, those are only finding in database

    Hi Excel Experts,

    We have a database of attendance report, however, considering multiple in & out we require data base in desired format.

    Into attached file there are 2 different worksheets i.e. 1. Available database & 2. Desired worksheet

    From Available database, we are require fields in following manner in summarized way..

    PERSONNUM | In | Out | Report date from | Report date To | No. of Shifts attended (in between to & from dates) | Details
    (I have prepared manual workout into Desired worksheet, however, column F and G is difficult calculate manually hence, only 1 record is calculated)
    For Example..
    From To No. of Shifts attended (in between to & from dates)
    21-Feb-2018 13-Mar-2018 19 (Calculated dates in between these two dates, those are only finding in Available database)

    Please help me to resolve the issue.

    Kravindra

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Counting of dates in between given two dates, those are only finding in database

    No attachment.

  3. #3
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    sorry
    attached now
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,514

    Re: Counting of dates in between given two dates, those are only finding in database

    Number of records in your desired result confuses.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    Hi jindon,
    Thanks a lot for your prompt response.
    However, the attachment in thread 4 is not opening , can you PLEASE open the said file at your end and resend to me with proper extension.

    Kravindra

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,514

    Re: Counting of dates in between given two dates, those are only finding in database

    I just did and I can download and open it without problem.

  7. #7
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    So sorry Boss,
    I have tried multiple times and different wasy also but, unable to open the said file
    please ref. the attached snaps for same

    Kravindra

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,514

    Re: Counting of dates in between given two dates, those are only finding in database

    Strange, it is the file that you attached in #3.
    Saved as xlsm this time.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    HI jindon,

    As I was busy with some another task, really sorry for late response.

    Thanks for your very prompt and almost 90% problem solving response in a single reply. Once again thanks for the same

    I have check the file, now it is working and it seems almost 90.0% OK as expected.

    - Only single bug / step is not considered anywhere; actually I missed the same in description in previous threads in this post and that is as follows;

    We require one more column after "Details" Column i.e. is Missed Punches (wherever find blank IN or OUT punches)..
    Missed IN Punch > Feb 18 : 21,22 & Mar 18: NIL.
    Missed OUT Punch > Feb NIL & Mar 18: 13.


    Kravindra





    Thanks a lot for your commendable efforts; you are really champ !!!

    Kravindra

  10. #10
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    We require one more column after "Details" Column i.e. is Missed Punches (wherever find blank IN or OUT punches)..
    Missed IN Punch > Feb 18 : 21,22 & Mar 18: NIL.
    Missed OUT Punch > Feb 18 : NIL & Mar 18: 13.

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,514

    Re: Counting of dates in between given two dates, those are only finding in database

    Upload a workbook with EXACT desired result. Do not be lazy.

  12. #12
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    Hi Jindon,
    Please ref. attached file
    (requirement is high-lighted in yellow colour column; done only for single row)
    Sorry for convenience caused to you.
    Kravindra
    Attached Files Attached Files

  13. #13
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,514

    Re: Counting of dates in between given two dates, those are only finding in database

    You said
    Quote Originally Posted by RavindraK View Post
    I have check the file, now it is working and it seems almost 90.0% OK as expected.
    And now, again
    Quote Originally Posted by RavindraK View Post
    (requirement is high-lighted in yellow colour column; done only for single row)
    Complete all the lines this time. I don't want to do a guess work anymore.

  14. #14
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    Boss,
    During problem described by me in first thread of this post, I missed a issue as follows;
    We require one more column after "Details" Column i.e. is Missed Punches (wherever find blank IN or OUT punches)..
    Missed IN Punch > Feb 18 : 21,22 & Mar 18: NIL.
    Missed OUT Punch > Feb 18 : NIL & Mar 18: 13.
    , extremely sorry for the same

    And considering above issue, you solved my solved my problem which is approx. 90% , remaining 10% is for the logical requirement, which I was missed out to describe.

    If you consider my request, then all my requirement will be fulfilled, including the logical requirement, which I missed out to describe in 1st thread.

    Thanks a lot for your commendable efforts and Sorry for convenience caused to you due to additional logic request by me.

    Please help me.

    kravindra

  15. #15
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    Hi Jindon,
    Thanks a lot for your commendable efforts and Sorry for convenience caused to you due to additional logic request by me.

    Please help me to resolve the same.

    kravindra

  16. #16
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    Hi Jindon,

    Please help me to resolve the same.

    kravindra

  17. #17
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,514

    Re: Counting of dates in between given two dates, those are only finding in database

    Quote Originally Posted by jindon View Post
    Complete all the lines this time. I don't want to do a guess work anymore.
    No effort, no return.

  18. #18
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    Hi Jindon,
    Extremely sorry for additional request from my side after your code workout.

    This time all the lines are completed
    please help me to resolve the same.

    Kravindra

  19. #19
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    Please help me to resolve the said query.
    Kravindra

  20. #20
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    Dear Excel Master,
    Plase help me to resolve the said query.
    Kravindra

  21. #21
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,514

    Re: Counting of dates in between given two dates, those are only finding in database

    Quote Originally Posted by RavindraK View Post
    This time all the lines are completed
    Do you really understand what I said?
    Where is the COMPLETED workbook?

    I will be busy rest of the day anyway.

  22. #22
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    Sir,
    Please ref. attached file
    (requirement is high-lighted in yellow colour column in Desired worksheet; done only for single row)
    Sorry for convenience caused to you. Please do it for me.
    Kravindra
    Attached Files Attached Files

  23. #23
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,514

    Re: Counting of dates in between given two dates, those are only finding in database

    So sorry, but I never want to do a guess work again for this particular thread.

    I said "COMPLETE" all rows and I need to see them all to test the result, so that you can't say "90%" or something like that.

    You need to wait for someone else to come in.

  24. #24
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    OK Sir,

    Complete requirement is as follows;

    We have a database of attendance report, however, considering multiple in & out we require data base in desired format.

    Into attached file there are 2 different worksheets i.e. 1. Available database & 2. Desired worksheet

    From Available database, we are require fields in following manner in summarized way..

    PERSONNUM | In | Out | Report date from | Report date To | No. of Shifts attended (in between to & from dates) | Details
    (I have prepared manual workout into Desired worksheet, however, column F and G is difficult calculate manually hence, only 1 record is calculated)
    For Example..

    1. Colum named "Details" Column (From To No. of Shifts attended (in between to & from dates))
    21-Feb-2018 13-Mar-2018 19 (Calculated dates in between these two dates, those are only finding in Available database)

    2. We require one more column after "Details" Column i.e. is Missed Punches (wherever find blank IN or OUT punches)..

    For example ..

    for PERSONNUM : BIS1234

    desired result/columns in "Desired worksheet"
    PERSONNUM = BIS1234
    In = 00-01-1900 00:00
    Out = 13-03-2018 11:23:00
    Report date from = 21-Feb-2018
    Report date to = 13-Mar-2018
    No. of Shifts attended (in between to & from dates) = 19
    Details = Feb'18 : 21,22,23,24,25,27,28 & Mar'18 ; 1,2,3,5,6,7,8,9,10,11,12,13
    Missed Punches = Missed IN Punch > Feb 18 : 21,22 & Mar 18: NIL.
    Missed OUT Punch > Feb 18 : NIL & Mar 18: 13.
    ===
    All desired columns (EXCLUDING "Missed Punches") successfully completed / done by jindon

    PLEASE HELP ME TO RESOLVE THE SAME

    Kravindra
    Attached Files Attached Files

  25. #25
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,514

    Re: Counting of dates in between given two dates, those are only finding in database

    Good luck.

  26. #26
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    Dear Excel Experts

    PLEASE HELP ME TO RESOLVE THE SAME i.e. Remaining part as follows..

    Missed Punches =
    Missed IN Punch > Feb 18 : 21,22 & Mar 18: NIL.
    Missed OUT Punch > Feb 18 : NIL & Mar 18: 13.

    Thanks in advance.

    Kravindra

  27. #27
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    Dear Excel Masters,
    Plase help me to resolve the said query.
    Kravindra

  28. #28
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,521

    Re: Counting of dates in between given two dates, those are only finding in database

    Seems to me that Jindon completely answered the original question in post #4, therefore the thread should have been marked as 'Solved' and reputation added to Jindon's account. At that point a new thread could have been opened asking for help with the missed punches, which are a separate issue.
    I am VBA illiterate so I can only propose a formula based option.
    Perhaps this will be of some help although it isn't in the format shown in the file attached to post #24.
    Columns K:N display Missed IN Punches using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Columns O:R display Missed OUT punches using a similar formula
    Columns I:J on the Available Database sheet are populated using: =IF(E2="",$D2,"")
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  29. #29
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    Thanks JeteMc for your response,
    However, due to our report limitation, we require the Missed Punches details as requested, you tried very well but we are unable to use multiple columns ; we require the Missed Punches details in single cell in front of each employee as requested .
    Further, once again thanks to jindon, who has helped me greatly to resolve desired columns, now pending part is only "Missed Punches", what I have requested later.

    Dear Excel Masters,

    Plase help me to resolve the balance part of query i.e Missed Punches =

    Kravindra

  30. #30
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    Dear Excel Masters,

    Plase help me to resolve the balance part of query i.e Missed Punches =

    Kravindra

  31. #31
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    Can any Excel Master, Plase help me to resolve the same

    Kravindra

  32. #32
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    Can any Excel Masters, Please help me to resolve the same.

    Kravindra

  33. #33
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Counting of dates in between given two dates, those are only finding in database

    See if this fulfills your need:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  34. #34
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    Sir,
    Thanks for your intervention, however, my requirement is as follows;
    2. We require one more column after "Details" Column i.e. is Missed Punches (wherever find blank IN or OUT punches)..

    For example ..

    for PERSONNUM : BIS1234

    desired result/columns in "Desired worksheet"
    PERSONNUM = BIS1234
    In = 00-01-1900 00:00
    Out = 13-03-2018 11:23:00
    Report date from = 21-Feb-2018
    Report date to = 13-Mar-2018
    No. of Shifts attended (in between to & from dates) = 19
    Details = Feb'18 : 21,22,23,24,25,27,28 & Mar'18 ; 1,2,3,5,6,7,8,9,10,11,12,13
    Missed Punches = Missed IN Punch > Feb 18 : 21,22 & Mar 18: NIL.
    Missed OUT Punch > Feb 18 : NIL & Mar 18: 13.

    Please ref. attached file for details (requirement Colum is H named "Missed Punches" in "Desired worksheet"
    ), highlighted in yellow colour, I have done manually for one person i.e. BIS1234, and I m looking same results to all in column H.

    Thanks in advance.

    Kravindra
    Attached Files Attached Files

  35. #35
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Counting of dates in between given two dates, those are only finding in database

    Here's a code to enter missed punch data into the desired result - see if it works for you:

    Please Login or Register  to view this content.
    Last edited by xladept; 05-10-2018 at 01:03 PM.

  36. #36
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Counting of dates in between given two dates, those are only finding in database

    xladept,

    EXCELLENT !! Many thanks it works a treat

    Many thanks for all your time effort it is very much appreciated.

    Also thanks to Jindon, who creates macro for Shifts attended details initially.

    Regards

    Kravindra

+ 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] Overlapping Dates, Gaps in Dates, Double Counting
    By arunkushvaha in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-19-2013, 11:15 PM
  2. Counting number of unique dates per month in a list of duplicate dates
    By Rackle83 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-22-2013, 10:15 AM
  3. Replies: 1
    Last Post: 11-01-2012, 03:41 PM
  4. Overlapping Dates, Gaps in Dates, Double Counting
    By sglxl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2012, 02:46 AM
  5. [SOLVED] Finding MIN and MAX by counting dates for a list of variables
    By Seaplane Jack in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-13-2012, 02:46 PM
  6. Replies: 4
    Last Post: 12-19-2011, 08:40 AM
  7. Replies: 4
    Last Post: 12-16-2011, 02:55 PM
  8. Counting Dates and Finding Earliest
    By -emma- in forum Excel General
    Replies: 7
    Last Post: 07-24-2007, 05:03 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