Forum Discussion

Rapid_Ron_L's avatar
Rapid_Ron_L
Copper Contributor
Mar 23, 2020

Returning a value from a discontinuous range (a formatted calendar with data) for a specific date

Using the date in the cell above this formula I need to find the value in a cell 11 rows below the date in a formatted calendar. The calendar is lain out in multiple rows of dates, arranged by week (from a calendar template I borrowed). I've assigned the name "Date_Range" to the discontinuous range of dates on the calendar. I've fiddled around with Index-Match formulas with no success ...

 

Can anyone throw me a life preserver?  🙂

 

p.s. This fetches the manpower count from the calendar to use against the needs for each day. To complicate matters, the calendar is in a different file and each month of the calendar is on a different sheet. I know how to use external file references and indirect to get to the the file name and sheet.

9 Replies

  • mathetes's avatar
    mathetes
    Gold Contributor

    Rapid_Ron_L 

     

    Is it at all possible for you to upload the actual files (after anonomysing any names). Your description is reasonably good, but you'd still be lucky if anybody could create a functioning formula just from that. The actual spreadsheet(s) would also be better than images....

     

    P.S. you're certainly right that having each month's calendar on a separate sheet is a major complicating factor. Are you in a position to make major changes to how the data are laid out? That kind of thing--although it makes for a nicer and more user-friendly display--makes it a LOT harder to use many of Excel's wonderful functions, which can extract data in all kinds of neat ways from a well-designed database. So if you're in a position to modify the way this is designed in the first place, we may be able to make some really effective changes.

    • Rapid_Ron_L's avatar
      Rapid_Ron_L
      Copper Contributor

      Hmmmm, I attached a file, or so I thought. I'll try again here - done, but I don't see it ....

       

      I don't want to change the calendar layout, for user best interaction, plus the time I have into it.  As I mentioned, I can already "build" the sheet reference from my input date, so getting to the correct page is fine. Just need to know how to search thru the range.  

      Right now I'm experimenting with row and column generation, using help from here: https://exceljet.net/formula/get-location-of-value-in-2d-array .  Having some success, but a bit cumbersome. Still...

      • mathetes's avatar
        mathetes
        Gold Contributor

        Rapid_Ron_L 

         

        The file should attach if you drag it to the area below the purple bar, where you enter your own message. See below for an image from this message I'm typing.

         

Resources