+ Reply to Thread
Results 1 to 4 of 4

dates and worksheets

  1. #1
    Registered User
    Join Date
    01-28-2014
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    12

    dates and worksheets

    Ok here is what I am trying to do and I dont know if I can.

    I have one worksheet with dates for a training event that has to be accomplished every year. On another worksheet I am tracking the people that still need to accomplish this even with a 1 or 0.

    Is there a way to look at just the year part of the date and do something like:
    if date >= current date then cell ="1"

    I have to do this for a lot of cells.

    Any help would be great.
    Attached Files Attached Files
    Last edited by codeformat; 01-28-2014 at 07:28 PM.

  2. #2
    Registered User
    Join Date
    01-07-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    24

    Re: dates and worksheets

    You can do it by using the text function. For example if your date is in Cell A2 and you put in
    Please Login or Register  to view this content.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: dates and worksheets

    Hello codeformat,

    Welcome to the Forum!

    Say your date is in A1. You can add a IF statement to cell B1 like this...

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


    You can drag this formula down the column as far as you need.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Registered User
    Join Date
    01-28-2014
    Location
    Tampa, FL
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: dates and worksheets

    I would like to do this as a macro if possible.

    on the detail tab there are names and dates. I need to have it look at the date and if it is the current year put a 1 in the master tab under accomplished.

    Also the number of cells with dates can change.
    Last edited by codeformat; 01-28-2014 at 08:42 PM.

+ 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. Dates Across Multiple Worksheets and Worksheets Title with Dates
    By ohthehorror in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-25-2013, 01:39 PM
  2. Sorting Dates Into Worksheets
    By Kelly88 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2011, 02:58 AM
  3. Moving dates between worksheets
    By SuperDad in forum Excel General
    Replies: 3
    Last Post: 02-23-2005, 04:06 PM
  4. Dates to Worksheets
    By D in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-02-2005, 12:06 AM
  5. [SOLVED] how do i link dates between worksheets?
    By brooke in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-27-2005, 02:06 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