+ Reply to Thread
Results 1 to 6 of 6

Construct a formula so that where one enters a date, a certain respective number appears

  1. #1
    Registered User
    Join Date
    07-28-2013
    Location
    Eastern Seaboard, North America
    MS-Off Ver
    Excel 2010
    Posts
    38

    Construct a formula so that where one enters a date, a certain respective number appears

    I want to construct a formula so that when one enters a date, then a certain respective number appears in reaction to date occurring within a certain temporal range.

    Temporal Ranges include all dates respectively mentioned

    02/01/2011 - 01/31/2012
    Year to return: 2010

    02/01/2012 - 01/31/2013
    Year to return: 2011

    02/01/2013 - 01/31/2014
    Year to return: 2012

    02/01/2014 - 01/31/2015
    Year to return: 2013

    02/01/2015 - 01/31/2016
    Year to return: 2014

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

    Re: Construct a formula so that where one enters a date, a certain respective number appea

    Try

    =YEAR(A1-31)-1

  3. #3
    Registered User
    Join Date
    07-28-2013
    Location
    Eastern Seaboard, North America
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Construct a formula so that where one enters a date, a certain respective number appea

    I contemplated that if one entered a date such as 11/13/13, then in another cell, the year 2012 would manifest.

    I refer to this parameter from earlier:

    02/01/2013 - 01/31/2014
    Year to return: 2012

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Construct a formula so that where one enters a date, a certain respective number appea

    Perhaps you entered Jonmo's formula incorrectly? It worked well for me, and I consider it very slick...
    H
    I
    1
    2/1/2011
    2010
    2
    1/31/2012
    2010
    3
    2/1/2012
    2011
    4
    1/31/2013
    2011
    5
    2/1/2013
    2012
    6
    1/31/2014
    2012
    7
    11/13/2013
    2012
    I1=YEAR(H1-31)-1
    copied down
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    07-28-2013
    Location
    Eastern Seaboard, North America
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Construct a formula so that where one enters a date, a certain respective number appea

    I may have to reassess this situation. I will attempt to verify this situation. Your assistance, to all respondent members, stands acknowledged and I hereby express my gratitude.

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

    Re: Construct a formula so that where one enters a date, a certain respective number appea

    You're welcome

+ 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. [SOLVED] Date appears as number when add text to the end
    By DeeRok in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-09-2014, 12:53 PM
  2. [SOLVED] Formula that takes info, then finds name, searches for name in another, then enters date
    By Wiggyknows in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-13-2014, 05:35 PM
  3. [SOLVED] formula to auto delete number in dropdown list when number appears in another cell #2
    By ddevins in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-28-2014, 08:31 AM
  4. [SOLVED] formula to auto delete number in dropdown list when number appears in another cell
    By ddevins in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-28-2014, 04:54 AM
  5. Replies: 1
    Last Post: 07-18-2013, 10:11 AM
  6. Counting the number of times a date appears in a list
    By Research RN in forum Excel General
    Replies: 7
    Last Post: 11-25-2008, 12:50 PM
  7. Date Appears As Number
    By Pipestew in forum Excel General
    Replies: 1
    Last Post: 02-11-2008, 12:46 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