This solution addresses the depth and temperature ranges, the same general principals should apply to the depth and dissolved oxygen also.
The array entered formula* for D5,D9 etc. is:
Formula:
=INDEX(A$1:A$34,SMALL(IFERROR(ROW(A$1:A$34)/(B$1:B$34=E5),FALSE),1))
The array entered formula* for D6,D10 etc. is:
Formula:
=IF(INDEX(A$1:A$34,SMALL(IFERROR(ROW(A$1:A$34)/(B$1:B$34=E6),FALSE),1))=D5,INDEX(A$1:A$34,SMALL(IFERROR(ROW(A$1:A$34)/(B$1:B$34=E6),FALSE),2)),INDEX(A$1:A$34,SMALL(IFERROR(ROW(A$1:A$34)/(B$1:B$34=E6),FALSE),1)))
The array entered formula* for E5, E9 etc. is:
Formula:
=IFERROR(SMALL(IFERROR((B$4:B$34)/(B$4:B$34>=VALUE(LEFT(D3,2))),FALSE),1),LARGE(IFERROR((B$4:B$34)/(B$4:B$34<=VALUE(LEFT(D3,2))),FALSE),1))
The array entered formula* for E6, E10 etc. is:
Formula:
=IF(LARGE(IFERROR((B$4:B$34)/(B$4:B$34<=VALUE(LEFT(D3,2))),FALSE),1)=E5,LARGE(IFERROR((B$4:B$34)/(B$4:B$34<=VALUE(LEFT(D3,2))),FALSE),2),LARGE(IFERROR((B$4:B$34)/(B$4:B$34<=VALUE(LEFT(D3,2))),FALSE),1))
*Array entered formulas are activated by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
Note: In the data the temperature at 8 ft was 77.2 F
Note: this solution assumes the version is 2007, as listed, and will open .xlsx file
Let me know if you have any questions.
Bookmarks