+ Reply to Thread
Results 1 to 5 of 5

value entered in a cell based on a date in another cell.

  1. #1
    Forum Contributor
    Join Date
    12-15-2005
    MS-Off Ver
    Office 2007
    Posts
    346

    value entered in a cell based on a date in another cell.

    I need a formula that will basically just display a 1 or 0 in one cell based on the date in the cell next to it.

    If the date is older than 180 days then a 0 will be displayed in the cell.

    If the date is less than 180 days then a 1 will be displayed in the cell.

    I have an attachement as an example.

    thanks for any help.

    Nick
    Attached Files Attached Files
    Last edited by avidcat; 12-23-2009 at 11:52 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: value entered in a cell based on a date in another cell.

    Try:

    =--(A12>TODAY()-180)

    Note: What if it is exactly 6 months.. if you want a 1, then change > to >= in above formula, else leave as is.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    12-15-2005
    MS-Off Ver
    Office 2007
    Posts
    346

    Re: value entered in a cell based on a date in another cell.

    Thanks, if Column A is blank is there a way to display nothing? I want to drag the formula down and have it only show if a date is entered.

    thanks for your help.
    Nick

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: value entered in a cell based on a date in another cell.

    Try:

    =IF(A12="","",--(A12>TODAY()-180))

  5. #5
    Forum Contributor
    Join Date
    12-15-2005
    MS-Off Ver
    Office 2007
    Posts
    346

    Re: value entered in a cell based on a date in another cell.

    Thanks worked perfect.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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