+ Reply to Thread
Results 1 to 7 of 7

Need help with dates

  1. #1
    Registered User
    Join Date
    02-11-2015
    Location
    Seattle, Washington
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    6

    Need help with dates

    I have a table that is tracking multiple savings goals, when they are due, and how much I have to save to reach my goal. I want to add a fourth column that tells me how many months I have left before the due date, so I can include a fifth column that will calculate how much I have to save per month to reach my goal by the due date.

    This is my data:

    GOAL DUE $ LEFT MO LEFT SAVE PER MO
    500 FEB 2021 350 FORMULA =C2/D2
    200 DEC 2020 175 FORMULA =C3/D3
    300 APR 2021 200 FORMULA =C4/D4
    300 APR 2021 200 FORMULA =C4/D4
    300 APR 2021 200 FORMULA =C4/D4
    300 APR 2021 200 FORMULA =C4/D4
    TODAY
    10/02/20


    What formula can I put into Column D that will calculate time in months from today until the due date in column B?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Need help with dates

    What is the underlying data in column B? You are showing just a month and year. Is this text, or is it a formatted date?

    In general any time you are dealing with dates in Excel, they should be represented as dates, not text, otherwise it is very difficult to use them in formulas.

  3. #3
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Need help with dates

    In D2 try...

    =DATEDIF(TODAY(),B2,"M") and drag down

    Don't forget you'll need to test for divide by 0 in the next column.

  4. #4
    Registered User
    Join Date
    02-11-2015
    Location
    Seattle, Washington
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    6

    Re: Need help with dates

    The date is fomatted data, just in the format of MMM YYYY. The data itself if the first of the visable month.

  5. #5
    Registered User
    Join Date
    02-11-2015
    Location
    Seattle, Washington
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    6

    Re: Need help with dates

    Quote Originally Posted by Croweater View Post
    In D2 try...

    =DATEDIF(TODAY(),B2,"M") and drag down

    Don't forget you'll need to test for divide by 0 in the next column.

    Not working. I basically will need a formula that will subtract the date due from today's date and convert it to number of months. It this possible?

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Need help with dates

    Quote Originally Posted by jjkkss View Post
    Not working.
    This is exactly what I would have suggested. What you do mean "not working"? What are you expecting and what is happening instead?

  7. #7
    Registered User
    Join Date
    02-11-2015
    Location
    Seattle, Washington
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    6

    Re: Need help with dates

    Quote Originally Posted by 6StringJazzer View Post
    This is exactly what I would have suggested. What you do mean "not working"? What are you expecting and what is happening instead?
    I input the DATEDIF formula and it returned a #NUM error, but I realized that I had 2020 for the due date year instead of 2021. Which meant the due date was earlier than today. Fixed the due date year and now it's working. Thanks!!

+ 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. Replies: 8
    Last Post: 07-20-2018, 11:52 AM
  2. Populating list of dates from another sheet with Start Dates and End Dates
    By Jesshloly in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2015, 04:07 AM
  3. Check dates in range either same dates or different dates by formula
    By breadwinner in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-12-2013, 07:42 AM
  4. Replies: 6
    Last Post: 03-11-2013, 06:11 PM
  5. [SOLVED] Array of dates when tested shows no dates ......but there are dates
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-29-2012, 12:45 PM
  6. [SOLVED] Highlight Group of Dates if Dates Match List of other Dates
    By martinpgibson in forum Excel General
    Replies: 5
    Last Post: 10-24-2012, 08:14 PM
  7. [SOLVED] Auto filling dates based on previously entered dates and averaging numbers if dates equal
    By grambograham in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2012, 03:21 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