+ Reply to Thread
Results 1 to 5 of 5

Cell to calculate when another cell date is expired or close to expiring

  1. #1
    Forum Contributor
    Join Date
    04-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    250

    Cell to calculate when another cell date is expired or close to expiring

    Basically to keep it simple. I have 3 cells.

    a1 has the formula =TODAY(-30) to show todays date(minus 30 days - so basically a month behind)
    a2 is an expiry date for e.g. 24/08/2014
    a3 needs to say "yes" or "no" to make it obvious to the end user that if the expiry date is within 30 days of expiring


    what do I put in the formula for a3 , because whatever I seem to do it doesn't work. both cells are date format

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Cell to calculate when another cell date is expired or close to expiring

    Try

    =IF(TODAY()>=A2-30,"yes","no")

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Cell to calculate when another cell date is expired or close to expiring

    A1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    a2 -> make sure it's date (may be not?) in B2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    is it right?

    In A3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  4. #4
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Cell to calculate when another cell date is expired or close to expiring

    try this..
    I think this is more logical..

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Don't forget to click *

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Cell to calculate when another cell date is expired or close to expiring

    Hi Vikas,

    Why you think that
    A2-Today())<=30

    Let's write it symbolically:
    a-b<=c
    (which can be written as
    a-b<=c |+b-c
    a-b+b-c<=b +c -c
    a-c<=b
    and of course swapping left/right sides
    b>=a-c)

    is more logical than
    TODAY()>=A2-30

    b>=a-c

+ 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. Automatic Email send from Excel when Cell value date expired before 10 days.
    By jeberson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-28-2015, 04:18 AM
  2. [SOLVED] POP UP Alert for Expiring and Expired Dates
    By jon112211 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2014, 12:09 PM
  3. Replies: 3
    Last Post: 04-17-2013, 10:02 AM
  4. Replies: 2
    Last Post: 02-07-2013, 04:50 PM
  5. Replies: 4
    Last Post: 10-05-2012, 07:52 AM

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