Hello,
Please see the attached file "Confirmation_List_7_test.xlsm". A simple VLOOKUP was used in the beginning to use the integer in the worksheet PCR, column F as a lookup value to find in the worksheet NF1_Lookup, column A the value that is either equal or the one smaller (approximate match) and return the value from column C.
Later on this was expanded to have multiple gene symbols in PCR!A. Each value in column needed to be combined with the one in column F in order to use the proper lookup table for the value in column A.
I made a separate worksheet for each gene, called "NF1_Lookup", "NF2_Lookup" etc. and used the formula (example in PCR!G4):
=B4&"-"&VLOOKUP($F4,INDIRECT($A4&"_Lookup"),3,TRUE)
This worked, but lately I added more lookup tables, like "SOS2_Lookup" and there I am getting a #REF! error. The new worksheets are copies of previous ones, just with other values.
I checked for extra "space" characters both in PCR! column A and the names of the new worksheets and did not find any. What is different?
There may be another way of doing this. My workbook has a sizable number of worksheets and there may be a way to consolidate them in one worksheet.
I need to keep the lookup within a range of integers. For example for the NF1 gene if my lookup value is <= 60 it needs to find "NF1_ex1". If it is between 61 and 204 it needs to find "NF1_ex2" and so forth.
FYI: the array formulas in PCR! column F are extracting the leftmost integer from column D. I found it on a forum and don't understand it.
Thank you!
Please see the attached file "Confirmation_List_7_test.xlsm". A simple VLOOKUP was used in the beginning to use the integer in the worksheet PCR, column F as a lookup value to find in the worksheet NF1_Lookup, column A the value that is either equal or the one smaller (approximate match) and return the value from column C.
Later on this was expanded to have multiple gene symbols in PCR!A. Each value in column needed to be combined with the one in column F in order to use the proper lookup table for the value in column A.
I made a separate worksheet for each gene, called "NF1_Lookup", "NF2_Lookup" etc. and used the formula (example in PCR!G4):
=B4&"-"&VLOOKUP($F4,INDIRECT($A4&"_Lookup"),3,TRUE)
This worked, but lately I added more lookup tables, like "SOS2_Lookup" and there I am getting a #REF! error. The new worksheets are copies of previous ones, just with other values.
I checked for extra "space" characters both in PCR! column A and the names of the new worksheets and did not find any. What is different?
There may be another way of doing this. My workbook has a sizable number of worksheets and there may be a way to consolidate them in one worksheet.
I need to keep the lookup within a range of integers. For example for the NF1 gene if my lookup value is <= 60 it needs to find "NF1_ex1". If it is between 61 and 204 it needs to find "NF1_ex2" and so forth.
FYI: the array formulas in PCR! column F are extracting the leftmost integer from column D. I found it on a forum and don't understand it.
Thank you!