+ Reply to Thread
Results 1 to 6 of 6

Array Formula that Looks Up and Returns Values from a Table

  1. #1
    Registered User
    Join Date
    01-18-2021
    Location
    california, united states
    MS-Off Ver
    MS365 (PC) Version 2209
    Posts
    39

    Array Formula that Looks Up and Returns Values from a Table

    Hey all,

    I'm creating a workbook that is as automated as possible and part of this involves converting formulas into array formulas to dynamically populate cells with formulas rather than having the user manually drag formulas to extend or manually delete formulas to shrink to the desired range.

    The workbook intends to populate cells with the year, month, week, and any hours attributed to a holiday that falls within that specific combination of year, month, and week (a table is populated with this information). I have the first three formulas calculating correctly, but I can't figure out how to convert the last formula into a dynamic array formula using the skills I currently have.

    Year:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Month:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Week:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Holiday Hours (Array, not working as intended:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Holiday Hours (Not an array, working as intended:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Holidays is a named table within the workbook. Please refer to the attached workbook for the example. Any help would be extremely appreciated!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Array Formula that Looks Up and Returns Values from a Table

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-18-2021
    Location
    california, united states
    MS-Off Ver
    MS365 (PC) Version 2209
    Posts
    39

    Re: Array Formula that Looks Up and Returns Values from a Table

    You did it again! Thank you so much! I had no idea # could be used in that way. You're an MVP n_n

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Array Formula that Looks Up and Returns Values from a Table

    Glad to help & thanks for the feedback.
    The Week formula can also be simplified slightly like
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-18-2021
    Location
    california, united states
    MS-Off Ver
    MS365 (PC) Version 2209
    Posts
    39

    Re: Array Formula that Looks Up and Returns Values from a Table

    Thanks so much! This solution is much easier for me to wrap my head around. I was able to update the Month formula using this logic as well.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Array Formula that Looks Up and Returns Values from a Table

    My pleasure.

+ 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] VLOOKUP returns error when table array is from another sheet - Excel settings?
    By zak1914 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-06-2020, 02:40 PM
  2. [SOLVED] Looking for formula that returns values from column if the rows in table have text in them
    By CustomizablePlayer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-17-2020, 11:21 AM
  3. Replies: 12
    Last Post: 09-20-2019, 08:52 PM
  4. [SOLVED] Vlookup Formula that combines two different Look Up values in the same table array
    By ensmith in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-24-2013, 11:05 PM
  5. [SOLVED] OR MATCH only returns FALSE when using a table array
    By scottyperry in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-15-2013, 01:25 PM
  6. Replies: 0
    Last Post: 04-09-2012, 09:23 PM
  7. Replies: 2
    Last Post: 07-10-2008, 05:53 AM

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