Results 1 to 2 of 2

Thread: IF Function: To update Status on Project Completion dates

  1. #1

    Cool IF Function: To update Status on Project Completion dates



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hi guys, can you help me please?

    I need to insert an IF function on the following information

    As shown below I have a Deadline Month in A2 and a Completion Month in B2.
    C2 is a Status field based on the progress of whether the deadline has being completed within less than < 6 months or greater > 6 months or greater than >12 months. ( I currently manually enter in the Status progress whether its "Within Deadline"- (WD), "Beyond Deadline"-(BD) or "Completed".

    I want to create the Status automatically for me.


    Deadline Month Completion Month Status
    Jul-11 Nov-11 WD
    Feb-11 Sep-11 BD
    Mar-11 Mar-11 Completed


    Your help would be greatly appreacited!!

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,209
    Articles
    57
    Blog Entries
    14
    Hi there, and welcome to the forum!

    Assuming Deadline Month is in A6 and Completion Month is in B6:
    =IF(DATEDIF(A6,B6,"m")<=6,"WD",IF(DATEDIF(A6,B6,"m")>=12,"Completed",IF(DATEDIF(A6,B6,"m")>6,"BD","")))

    Hope it helps,
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training) or with my book M is for Data Monkey!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •