+ Reply to Thread
Results 1 to 3 of 3

Dynamic Array Formula Query - Dates

  1. #1
    Registered User
    Join Date
    04-22-2020
    Location
    Australia
    MS-Off Ver
    O365
    Posts
    4

    Dynamic Array Formula Query - Dates

    Hi,

    Not quite sure how to title this question.

    I am trying to derive some helper data from dates using the new Dynamic Arrays functions in O365.

    I am trying to assign a number to every month in a financial year. That is, all months in financial year 2020 to be 1, 2021 to be 2, 2023 to be 3, etc.

    I need this to be a dynamic array to be compatible with the rest of the spreadsheet.
    Attached is a sample file with the problem. I need a formula for cell G10. The desired results are highlighted in green.

    Eg.
    Date 30/06/2020 31/07/2020 31/08/2020 etc
    Financial Yr 2020 2021 2021
    Financial Model Yr 1 2 2

    Any suggestions?
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Dynamic Array Formula Query - Dates

    Please try
    =G6#-YEAR(sStartDate)+1

    or
    =YEAR(EOMONTH(sStartDate,SEQUENCE(1,sModelTerm,6)))-YEAR(sStartDate)+1
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-22-2020
    Location
    Australia
    MS-Off Ver
    O365
    Posts
    4

    Re: Dynamic Array Formula Query - Dates

    Brilliant!! Thanks Bo_Ry.

    2 solutions that work. I'll use the 1st one for it's simplicity.

    Much appreciated.

+ 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. How to store query data into dynamic array?
    By VAer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-30-2018, 10:11 AM
  2. Dynamic Row Lookup Array within Array formula
    By OLLY-7 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-17-2014, 04:55 PM
  3. Array formula to check if dates returned from another array formula falls between 2 dates
    By Atul Maskara in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-19-2014, 09:54 PM
  4. Web Query and Dynamic Dates
    By slxia1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-14-2013, 04:37 PM
  5. [SOLVED] Array formula query: How to do a mini look up?
    By The_Snook in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-28-2012, 07:48 AM
  6. Excel 2007 : =IF formula help/query for dates.
    By cayal in forum Excel General
    Replies: 3
    Last Post: 09-02-2010, 09:58 PM
  7. Need formula to query an array and return a value
    By rlerner in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-29-2009, 02:39 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