+ Reply to Thread
Results 1 to 3 of 3

Attempting to return a list of preceding years; for example, for the year 2014, I want to

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

    Attempting to return a list of preceding years; for example, for the year 2014, I want to

    I attempted to create a respective formula to respectively either do the following (MK I) or the subsequent (MK II):

    MK I

    1. To populate a group of cells with the four consecutive years preceding the, for our purposes, main year.

    For example, one would enter the year 2014, then in a group of cells one would see the following cells each in only one cell and each with a respective cell:

    2013

    2012

    2011

    2010

    This will quite plainly entail listing out the number of years in a series.

    2. One compares a number in another cell to ascertain whether that number equals one of the years noted above, 2010 inclusive to 2014 inclusive.

    MK II

    1. One enters a main year for evaluation, such as for example, 2014, and then in another cell enters another year, such as 2011, and one receives an answer as to whether 2011 equals a year from the period inclusive of 2010 to inclusive of 2014.

  2. #2
    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,936

    Re: Attempting to return a list of preceding years; for example, for the year 2014, I want

    If I understand you correctly...
    for MK 1.1
    A
    B
    C
    D
    1
    2014
    <--- entered
    2012
    <--- entered
    2
    2013
    =$A$1-ROWS($A$1:A1)
    TRUE
    3
    2012
    4
    2011

    A2=$A$1-ROWS($A$1:A1)
    copied down 2 more times

    MK 1.2
    C2=AND($C$1<=A1,$C$1>=A4)

    MK II.1 seems to be the same as MK 1.2?
    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

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

    Re: Attempting to return a list of preceding years; for example, for the year 2014, I want

    Thank you, that seems quite appropriate. I will evaluate this formula further at some point perhaps.

+ 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] How to Format Dates to Colors, That Are Over 1 Year, 2 Years, and 3+ Years
    By KAB923 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-03-2015, 10:46 AM
  2. the year value goes is still 2014
    By kwfine in forum Excel General
    Replies: 2
    Last Post: 12-29-2014, 03:20 AM
  3. Delete everything where year is not 2014
    By khannar62 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-09-2014, 05:11 PM
  4. [SOLVED] Selecting Quarter 1, Year 2014 Dates in ListBox
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 03-07-2014, 10:30 AM
  5. [SOLVED] List every year within a range of years
    By LarryLegend in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-19-2013, 05:10 PM
  6. Attempting to return a unique value from a list based on multiple rankings.
    By HockeyZ39 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 10-24-2012, 12:38 AM
  7. StaticDate() Function shows year as 2014?
    By Samba1 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 06-08-2010, 12:40 PM

Tags for this Thread

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