+ Reply to Thread
Results 1 to 15 of 15

Formula Creation Display Text (SOLVED)

  1. #1
    Registered User
    Join Date
    05-16-2015
    Location
    Queensland
    MS-Off Ver
    2010
    Posts
    6

    Formula Creation Display Text (SOLVED)

    I've been assigned a task at work to create a formula on excel

    Column Cell A Column Cell B
    Work Date Commenced: Project Due:
    10/09/2013
    11/12/2008
    11/03/2015
    30/09/2010
    23/07/2009
    19/09/2008
    26/08/2009


    I need to devise a formula so that Column Cell B either displays "Project due" or "Project not yet due", a project is due exactly every 6 months from the work date commenced.

    =IF((TODAY())-A1=6,"Project Due","Project not yet due")

    This is all I have and I'm not sure if I'm on the right track or using the right formula. Creating a formula that describes if its been 6 months since their commencement date is what is getting to me.

    Which formulae would be helpful in creating something to make a result show on excel every 6 months from that commencement date?
    Last edited by jumpingjack139; 05-17-2015 at 12:23 AM.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula Creation HELP!

    Try this formula

    =IF(DATEDIF(A1,TODAY(),"m")=6,"Project Due","Project not yet due")

    Analysis ToolPak add-in must be enabled for DATEDIF to work.

    You also need to clarify what should happen if there are more than 6 months or less then 6 months
    Last edited by AlKey; 05-16-2015 at 10:58 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  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
    53,049

    Re: Formula Creation HELP!

    Hi, welcome to the forum

    1st, Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    (perhaps something like "display text when project due")

    Also, take a look at =EDATE()
    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
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Formula Creation Display Text

    =IF(DATEDIF(A1,TODAY(),"m")>=6,"Project Due","Project not yet due")
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Registered User
    Join Date
    05-16-2015
    Location
    Queensland
    MS-Off Ver
    2010
    Posts
    6

    Re: Formula Creation HELP!

    Quote Originally Posted by AlKey View Post
    Try this formula

    =IF(DATEDIF(A1,TODAY(),"m")=6,"Project Due","Project not yet due")

    Analysis ToolPak add-in must be enabled for DATEDIF to work.

    You also need to clarify what should happen if there are more than 6 months or less then 6 months


    - This was great thank you so much I appreciate your help, I've gotten a million steps closer.

    However, would you know how to change the formula to account for if it was more than 6 months? For example I trialled it and it worked for a date I experimented exactly 6 months before (10/03/2013)and it showed 'Project Due' with the formula you provided which was awesome.

    But if I did another 6 month interval further back at (10/9/2012), it would show 'Project Not Due' I guess because it's technically 12 months rather than 6 months difference. how would you tweak the formula so it would display it at a 6 month interval rather than showing results for just 6 months?

  6. #6
    Registered User
    Join Date
    05-16-2015
    Location
    Queensland
    MS-Off Ver
    2010
    Posts
    6

    Re: Formula Creation HELP!

    thanks so much guys nearly getting it
    Last edited by jumpingjack139; 05-16-2015 at 11:54 PM.

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Formula Creation HELP!

    Quote Originally Posted by jumpingjack139 View Post
    The formula worked out great and I'm alot closer to the solution, thank you so much.

    When I experimented the formula for Cell A1 (10/09/13) by using a date (10/03/13), exactly 6 months before it showed Project Due, which was amazing. However when I tried a date (10/09/12), which is the next 6 month interval before that, it showed Project Not Due, which I guess is understandable because its no longer 6 months but 12 months which contradicts the formula. How would I tweak the formula so reacts to 6 month intervals rather than just the 6 months? I'm not particularly sure how to approach it further
    =IF(DATEDIF(A1,TODAY(),"m")>=6,"Project Due","Project not yet due")

  8. #8
    Registered User
    Join Date
    05-16-2015
    Location
    Queensland
    MS-Off Ver
    2010
    Posts
    6

    Re: Formula Creation Display Text

    That way works great, but it shows 'Project Due' for any date at the 6 month mark and any date past it, rather than the date at the exact 6 month mark points

    Is there a way to format what i'm thinking into excel format like:

    =IF(DATEDIF(A1,TODAY(),"m") 'ALL MULTIPLES OF 6' ,"Project Due","Project not yet due")

    ^ like all multiples of 6 so every time it hits the 6 month mark it will show project due, its hard cause =6 only shows for the previous 6 months and if I did a check for the next previous 6 months (12 months before) then the next 6 months (18 months before) it would show 'Project not yet due' which isn't what i'm looking for , is there a way to fix it

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Formula Creation Display Text

    =IF(MOD(DATEDIF(A1,TODAY(),"m"),6)=0,"Project Due","Project not yet due")
    TRY

  10. #10
    Registered User
    Join Date
    05-16-2015
    Location
    Queensland
    MS-Off Ver
    2010
    Posts
    6

    Re: Formula Creation Display Text

    Worked great thanks mate there we go

  11. #11
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Formula Creation Display Text (SOLVED)

    you are welcome, thanks for your feedback and adding reputation

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula Creation HELP!

    Quote Originally Posted by AlKey View Post

    Analysis ToolPak add-in must be enabled for DATEDIF to work.
    DATEDIF is a built-in function and the ATP is not needed for it to work.

    http://www.cpearson.com/Excel/datedif.aspx
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  13. #13
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula Creation Display Text (SOLVED)

    You're right Tony! I think I confused it with something else

  14. #14
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula Creation Display Text (SOLVED)

    Here's a list of all the ATP functions (near the bottom of the page):

    https://support2.microsoft.com/defau...b;EN-US;291058

    Of course, this only applies to Excel versions 2003 and earlier. These functions were added as built-in functions starting in Excel 2007.

  15. #15
    Registered User
    Join Date
    05-16-2015
    Location
    Queensland
    MS-Off Ver
    2010
    Posts
    6

    Re: Formula Creation Display Text

    Hey, would there be a way to modify the equation so that it doesn't show 'Project Due', when the work date commenced is today's date?
    For example if I used today's date: (I'm from Australia) for a person who has commenced work: 18/05/15, it shows "Project Due" how come it still shows this, when its not within 6 months?

+ 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. Excel file creation dates do not match the windows creation date.
    By alexthapyro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2011, 12:14 PM
  2. Need help with formula creation
    By Starbucks Junkie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-26-2010, 10:20 AM
  3. Formula creation...if possible
    By Kelly C in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-22-2006, 07:15 PM
  4. Formula Creation via Add-in problem
    By Bill Schanks in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2006, 08:10 PM
  5. IF Function - formula creation
    By emily's excel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-01-2005, 12:20 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