Lux Aeterna
Board Regular
- Joined
- Aug 27, 2015
- Messages
- 201
- Office Version
- 2019
- Platform
- Windows
This is a follow-up question regarding a previous thread that was successfully handled by @Peter_SSs
I need a formula for cell C21 that will look up the value in B21 on the correct sheet. The correct sheet is specified in P1, and the table for the VLOOKUP function is located in the range N3:O76.
The data should be retrieved from the "D*" sheet, within the range R7:R11. I can make modifications to that range, such as adjusting the data, splitting it into two columns, reversing the order, substituting "to," or anything else necessary. Please note that R7 represents "greater than or equal to" and R11 represents "less than or equal to".
The formula @Peter_SSs used, in case you need it, is
A previous version of my file is here. I have made some alterations, but the basic structure remains the same.
I need a formula for cell C21 that will look up the value in B21 on the correct sheet. The correct sheet is specified in P1, and the table for the VLOOKUP function is located in the range N3:O76.
The data should be retrieved from the "D*" sheet, within the range R7:R11. I can make modifications to that range, such as adjusting the data, splitting it into two columns, reversing the order, substituting "to," or anything else necessary. Please note that R7 represents "greater than or equal to" and R11 represents "less than or equal to".
The formula @Peter_SSs used, in case you need it, is
Excel Formula:
=INDEX(INDIRECT("'"&VLOOKUP(P$2;$N$3:$O$76;2;0)&"'!C$7:C$99");MATCH(B5;--LEFT(INDIRECT("'"&VLOOKUP($P$2;$N$3:$O$76;2;0)&"'!D7:D99");FIND("-";INDIRECT("'"&VLOOKUP($P$2;$N$3:$O$76;2;0)&"'!D7:D99")&"-")-1);1))
A previous version of my file is here. I have made some alterations, but the basic structure remains the same.