+ Reply to Thread
Results 1 to 4 of 4

Formula to Match a text year against a =text(date,"yyyy") and return a 1 value

  1. #1
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Formula to Match a text year against a =text(date,"yyyy") and return a 1 value

    Hi I have a drop down list with text years in (2014, 2015 etc)

    I need a formula that looks at todays date and displays a one in a cell if the relevent year is selected in the drop down list.

    Probably simple but everything I have tried has failed.

    Thanks in advance

    JD

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Formula to Match a text year against a =text(date,"yyyy") and return a 1 value

    =if(year(today())=a1,1,"") where a1 is where your drop down list passes value to.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: Formula to Match a text year against a =text(date,"yyyy") and return a 1 value

    Thanks for that Nathan, its a case of looking at something so for so long the obvious answer goes out of the window.

    Cheers

    JD

  4. #4
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Formula to Match a text year against a =text(date,"yyyy") and return a 1 value

    Cant see the wood for the wood :o)

+ 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: 1
    Last Post: 12-11-2013, 10:35 AM
  2. [SOLVED] Formula TEXT returns "yyyy" instead of the real year number
    By Hitch75 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-28-2013, 06:57 AM
  3. Replies: 3
    Last Post: 01-17-2013, 07:20 PM
  4. Replies: 10
    Last Post: 06-10-2012, 03:55 PM
  5. [SOLVED] Find multiple "text" criteria and return as ""Yes" in Matrix
    By bertrand82 in forum Excel General
    Replies: 11
    Last Post: 04-30-2012, 09:20 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