+ Reply to Thread
Results 1 to 6 of 6

Looking up value from table with ranges to give output

  1. #1
    Registered User
    Join Date
    06-16-2021
    Location
    GR
    MS-Off Ver
    365
    Posts
    3

    Question Looking up value from table with ranges to give output

    Hi,

    I'm trying to get some help creating a formula that looks up a value located on a table and returns a value based on parameters in a different table. I've found formulas online using INDEX and MATCH, but I can't quite figure out how to make it work for my purposes.
    I've attached a file with some example tables of what I'm looking at doing.

    The left most table, named Task_table, currently has a list of four generic tasks, each with its own projected completion date. The right side table, named Iteration_table, contains start/end dates for some "iteration loops".

    What I want to do is to populate column A with the iteration numbers based on projected completion dates. However, if the date is outside the bounds of the iteration loops already defined, it should come back with an error message (for example: say "undefined").

    I've added some comments to my attachment showing where the formula needs to be and where the data is being pulled from.

    Let me know if you have any questions and thanks for any help you can provide.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,266

    Re: Looking up value from table with ranges to give output

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

    Good luck!

  3. #3
    Registered User
    Join Date
    06-16-2021
    Location
    GR
    MS-Off Ver
    365
    Posts
    3

    Re: Looking up value from table with ranges to give output

    That works perfectly.

    Thank you very much!

  4. #4
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,266

    Re: Looking up value from table with ranges to give output

    You're welcome. Glad to help.
    Thank you for the feedback and for the reputation added.
    Have a blessed day!

  5. #5
    Registered User
    Join Date
    06-16-2021
    Location
    GR
    MS-Off Ver
    365
    Posts
    3

    Re: Looking up value from table with ranges to give output

    Need some more help on this one.

    The values that come out of the formula provided are coming up as text values. Is there a way to get the same result but have the values output as actual numbers?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,760

    Re: Looking up value from table with ranges to give output

    Try this:

    =--IFERROR(TEXTJOIN("; ",1,FILTER(Iteration_table[Iteration],(Iteration_table[Start Date]<=[@[Required completion date]])*(Iteration_table[End Date]>=[@[Required completion date]]))),"Undefined")

    or:

    =IFERROR(TEXTJOIN("; ",1,FILTER(Iteration_table[Iteration],(Iteration_table[Start Date]<=[@[Required completion date]])*(Iteration_table[End Date]>=[@[Required completion date]]))),"Undefined")+0

    or:
    =VALUE(IFERROR(TEXTJOIN("; ",1,FILTER(Iteration_table[Iteration],(Iteration_table[Start Date]<=[@[Required completion date]])*(Iteration_table[End Date]>=[@[Required completion date]]))),"Undefined"))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] Using Name Manager named ranges against a pivot table output
    By Becks54 in forum Excel General
    Replies: 4
    Last Post: 04-20-2017, 11:23 AM
  2. How to give the output of duplicates from different columns in one row
    By gunner05 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-03-2013, 08:41 PM
  3. how to force HLOOKUP to give output in the same format as the source table?
    By yessuz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-25-2013, 10:23 AM
  4. [SOLVED] Pull ranges from Table A and give max match count compared to another range
    By sans in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 05-26-2012, 11:35 AM
  5. VBA to give static output of LEFT function
    By mcp21x in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2009, 10:59 AM
  6. Matching dates to give counter output
    By Tommy in forum Excel General
    Replies: 3
    Last Post: 05-02-2009, 05:56 AM
  7. Compare and give output
    By piriz in forum Excel General
    Replies: 2
    Last Post: 04-05-2007, 01:29 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