+ Reply to Thread
Results 1 to 4 of 4

Date Difference and remarks

  1. #1
    Registered User
    Join Date
    04-11-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    96

    Date Difference and remarks

    i want to calculate date difference ... in column "C" there comes difference in year , in column "D" it shows month differences and in column "E" it shows days difference of values in column A and B.
    if age in years is greater than 16 (value of column C) then in remarks column shows OA and if it is greater than 21 then it shows OA&NE in remarks column.
    i need VBA code in sheet1.
    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Date Difference and remarks

    Hi,

    See attached.

    You may need to adjust the stats depending on whether you want the start and end dates to be inclusive or not. i.e How are you defining difference?
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    04-11-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    96

    Re: Date Difference and remarks

    i need VBA code for that in sheet1

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Date Difference and remarks

    Quote Originally Posted by mubashar View Post
    i need VBA code for that in sheet1
    ........Why?
    And what exactly do you mean by you want VBA code in 'Sheet1'? What do you want it to do that standard Excel functions don't?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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