+ Reply to Thread
Results 1 to 2 of 2

Creating an ARRAY from non-sequential periods

Hybrid View

  1. #1
    Registered User
    Join Date
    01-01-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010, 2013, 2016
    Posts
    47

    Creating an ARRAY from non-sequential periods

    I am trying to consolidate similar impact assumptions year over year - to save having to create large tables of impact numbers going out 20-30 rows/columns. I was hoping I could only add when the changes occurs, please see the example below (with result I need):

    12/31/2021: 3%
    12/31/2022: 2%
    12/31/2025: 1%
    12/31/2026: 2%
    	
    Result:	={3%,2%,2%,2%,1%,2%}
    Hope this makes sense. Thanks!
    Last edited by James McEwan; 11-22-2021 at 02:34 PM.

  2. #2
    Forum Contributor shank_mis's Avatar
    Join Date
    09-08-2018
    Location
    Delhi
    MS-Off Ver
    2010
    Posts
    128

    Re: Creating an ARRAY from non-sequential periods

    Let's assume that your dates are in Column A and Values are in Column B:

    Write this formula in Column C:

    Formula: copy to clipboard
    =LOOKUP(DATE(ROW(INDIRECT(YEAR($A$1)&":"&YEAR($A$4))),{12},{31}),$A$1:$A$4,$B$1:$B$4)

    Confirm with Ctrl+Shift+Enter

    You will get you array. To see the array select the cell where you have written the formula ---> Go to Formula Bar ---> and Press F9
    Attached Files Attached Files
    Shashank Mishra
    Please hit "Add Reputation" Button if you liked the answer.

+ 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] Count a customer if they appear for sequential periods (by month), fresh count if not
    By AnnieMM in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-23-2021, 08:35 AM
  2. creating running total with inconsistent periods
    By tgreenfield88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2020, 12:11 PM
  3. Creating chart for missing periods of time
    By IgorDe in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-14-2019, 09:08 AM
  4. [SOLVED] Summing results returned from vlookups where some cells in array contain periods
    By ridd3ll in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-14-2016, 10:12 AM
  5. [SOLVED] formula to count sequential 5 minute periods throughout day
    By EnergyOptions in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-18-2014, 08:17 PM
  6. Sequential time scheduling over days that have 12 hr periods
    By 1ceman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-03-2006, 10:09 PM
  7. Creating Leading Periods
    By SWario in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-09-2005, 10:05 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