3
1
I have a spreadsheet that will default with values of "No". Over time, these values will be changed to "Yes".
I need a formula (no VB, please, VB is useless to me) that will get me the row number of the last "Yes" in a range of cells so that I can look up the value in that row number of another column to retrieve text to display.
Let's say I have this in one column (call it 1): "Yes", "Yes", "Yes", "No", "No"
And this in the referenced column (call it 2) 1, 1, 2, 2, 3
When all is said and done, INDIRECT(THE_FORMULA_HERE, 2) should retrieve me the value "2". And when all "Yes" are placed, it would change to "3", etc.
Thank you sir, that's exactly what I needed. Yes, the data is contiguous. – MetroidFan2002 – 2009-11-01T17:38:00.680
1How did you format the table like that that's nice :) – None – 2009-11-01T17:44:12.273
@metroidfan2002 not a problem, glad I could help – Richard Slater – 2009-11-01T19:22:53.760
@asksuperuser it is in a code block (four spaces before the first character of each line) then just use spaces to "tab" the characters to the correct position. Spent most of my formative programming years bugging people in IRC, that is the easiest way to display simple 2D datasets. – Richard Slater – 2009-11-01T19:24:56.207