Note that there are some explanatory texts on larger screens.

plurals
  1. POExcel - using LOOKUP() to find a value in a range defined by an INDEX() function
    primarykey
    data
    text
    <p>I have a spreadsheet where I would like to model the progress of several projects over a few years. The projects start in differing years.</p> <p>I have a table with years in the horizontal axis and projects on the vertical.</p> <p><img src="https://i.stack.imgur.com/w5PEj.png" alt="enter image description here"></p> <p>I need programatically to work out in which year each project starts. This was easy when the project line is static - I used a LOOKUP() function to connect the project number with the year number, but I would like to set-up various scenarios so that I can alter the schedule of projects on the fly from a preset list.</p> <p>This was easy enough - I just set-up another table with scenarios in the vertical and the projects on the horizontal, and pulled the correct row into the main table with an INDEX() function. </p> <p><img src="https://i.stack.imgur.com/yP7rg.png" alt="enter image description here"></p> <p>However, doing this seems to have screwed-up my ability to work out what year each project starts. The formula now gives very odd results.</p> <p>Is this because I am trying to LOOKUP() inside a range which has been pulled from somewhere else via an INDEX() call?</p> <p>If so, can anyone help me work out how to work around it? I don't understand why my formula is giving me such odd results.</p> <p><img src="https://i.stack.imgur.com/mj7ij.png" alt="enter image description here"></p> <p>If you want to see the spreadsheet it's available here:</p> <p><a href="http://diggory.net/Grazing/stackExchange/Index%20of%20lookup.xlsx" rel="nofollow noreferrer">http://diggory.net/Grazing/stackExchange/Index%20of%20lookup.xlsx</a></p> <p>Thanks in advance for any help.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload