+ Reply to Thread
Results 1 to 3 of 3

Index based on time period and value

  1. #1
    Registered User
    Join Date
    02-27-2014
    Location
    Lithuania, Klaipeda
    MS-Off Ver
    Excel 2013
    Posts
    96

    Index based on time period and value

    This post is related to my previous post here: https://www.excelforum.com/excel-for...ml#post5327870
    I'm successfully using this formula:
    =IFERROR(LOOKUP(2,1/($K$3:$K$17=B$1)/($I$3:$I$17>=$A2)/($I$3:$I$17<$A2+7),$J$3:$J$17),"")
    But now I want to add one more condition - end date. So now I'm searching for the formula that would allow me to return values based on date interval.
    As you see in example, I have start and end dates for specific event. My purpose is to return events based on specific date period (in this case is all weeks of the year). In my raw date, event can extend through the multiple weeks, in that case formula should return value twice, even trice.
    Example is in attachment.
    Thank you very much!
    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,213

    Re: Index based on time period and value

    Please try at B2

    =IFERROR(LOOKUP(2,1/($K$3:$K$17=B$1)/($L$3:$L$17<=$A2)/($M$3:$M$17>=$A2),$N$3:$N$17),"")
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-27-2014
    Location
    Lithuania, Klaipeda
    MS-Off Ver
    Excel 2013
    Posts
    96

    Re: Index based on time period and value

    Thanks! I also find a way just by editing existing formula, to use end date: =IFERROR(LOOKUP(2,1/($K$3:$K$17=B$1)/($I$3:$I$17>=$A2)/($I$3:$I$17<$A2+7),$J$3:$J$17),"")

+ 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. Roster Pay with 4 Different Wages Based on time period
    By kevqxd in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-04-2020, 02:30 AM
  2. Remove duplicates based upon a period of time
    By Richard Ninetoes in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-15-2019, 06:12 PM
  3. Values based on a rolling 6 month time period
    By andyking40 in forum Excel General
    Replies: 4
    Last Post: 12-18-2018, 03:22 AM
  4. [SOLVED] Calculate the portion of a planned number during a period, based on another time period
    By BryGuy81 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-19-2017, 01:29 PM
  5. [SOLVED] Calculate values based on time period
    By rtcwlomax in forum Excel Programming / VBA / Macros
    Replies: 58
    Last Post: 06-30-2015, 05:58 PM
  6. [SOLVED] Dynamic Formula Based on User Entered Period of Time
    By skywriter in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-08-2015, 03:46 PM
  7. [SOLVED] Complicated:Calculate time period based on no. of units sold + fluctuations within period
    By omaha.crab in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2012, 03:04 AM

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