+ Reply to Thread
Results 1 to 4 of 4

Conditional formula's in excel-calculating with dates / age and affiliation date calculus

  1. #1
    Registered User
    Join Date
    03-07-2005
    Location
    Brussels
    Posts
    21

    Conditional formula's in excel-calculating with dates / age and affiliation date calculus

    Good afternoon,

    I would need a hand on the following 2 things I'm trying to do in Excel 2010.

    1. If a date falls between two others return TRUE
    e.g. Date in Service < Date of 25th Birthday < Date of 6 Months in Service
    Date in service in B6
    Date of 25th Birthday in B12
    Date of 6 Months in Service in B11
    My dates are formated as dd/mm/yyyy
    I wrote the formula in B19 =B6<B12<B11 which is not doing the trick.
    Any suggestions?

    2. Employees can subscribe to an insurance depending on their age and time in service.
    I'm stuck on: Affiliation from the 1st of the month following or coinciding with the completion of 6 months of service
    or if age 25 is reached before the 6 months of in service, affiliation from the 1st of the month following the 25th Birthday.

    For the Affiliation from the 1st of the month following or coinciding with the completion of 6 months of service I wrote this formula in cell B27 =DATE(YEAR(B6);MONTH(B6)+1; 1) with B6 being Date in service

    How do I combine it with the second condition: if age 25 (B12) is reached before the 6 months of in service (B11), affiliation from the 1st of the month following the 25th Birthday

    I hope my questions become clearer when you open the attached spreadsheet with my current calculations.

    Thanks in advance for your help!

  2. #2
    Registered User
    Join Date
    03-07-2005
    Location
    Brussels
    Posts
    21

    Re: Conditional formula's in excel-calculating with dates / age and affiliation date calcu

    And here is the promised attachment.
    Attached Files Attached Files

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Conditional formula's in excel-calculating with dates / age and affiliation date calcu

    B14 =IF(B12>TODAY(),"Yes","No") add the "No" so you dont get a FALSE return
    B17=IF(B9>"25","Yes") this will always return "Yes", because B9 is a text string, and it will never say "25"...and "25" is actually text, not a number. Try this instead...
    =IF(DATEDIF(B5,B6,"Y")>25,"Yes","No")
    same for B18
    for B19=B12>B11 (if I understand you correctly?)
    for B24, try this...
    =IF(DATE(YEAR(B5)+18,MONTH(B5),DAY(B5))<B7,DATE(YEAR(B12),MONTH(B12), 1),"")
    for B27, maybe...
    =IF(DAY(B6)=1,DATE(YEAR(B6),MONTH(B6),DAY(B6)),DATE(YEAR(B6),MONTH(B6)+1,1))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    03-07-2005
    Location
    Brussels
    Posts
    21

    Re: Conditional formula's in excel-calculating with dates / age and affiliation date calcu

    Hi,

    Thank you so much. It did the tricks and now I know how to compile future formula's

+ 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. Conditional Formatting (or a formula) For Dates Comparing to the Current Date
    By shoebox54th in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-08-2013, 01:20 PM
  2. [SOLVED] Calculating difference between 2 dates in excel 2003 - formula not working correctly
    By cf7046 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-03-2013, 10:18 PM
  3. Multivariate Calculus in Excel - Help Solving a Problem
    By el4n in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-07-2012, 04:52 PM
  4. Calculating dates based on the current date
    By DavidW in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2006, 08:50 AM
  5. formula for Calculating Dates in excel
    By Lillian Forsyth in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-22-2005, 03:01 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