I know how to use VLookup and have done so successfully many many times. I am getting some weird behavior that is not right and was hoping someone knows how to fix it.
I use the data import feature on Excel to create an index for the rows of data and that index is, of course the first column. The range is named PPs. The format of the number is XXX.XXX or as example: 207.431. The last 3 digits are created using the line number of the table that is created on import. So a likely sequence might be:
… 206.422, 206.423, 206.424, 207.425, 207.426 … 207.430, 207.431, 208.432, 208.433...
The concept works pretty well. The data to the left of the first column can then be easily called … =Vlookup(B4 {say 207.425},PPs,55). The 55th column is pulled up and all is well with the world.
Except that sometimes (pretty frequently) Excel thinks it can't find one of these numbers. when that happens it find a close number which happens to always be the number just before. So when I call vlookup({207.426},PPs,55), I get the value for vlookup({207.425},PPs,55). I am using '{}' to represent the number. It actually comes from a formula that 'should' mathematically give the exact value. In fact I list out the values in the spreadsheet and they all display correctly. I've tried increasing number decimal places and it shows up perfectly. so 207.426 shows as 207.42600.
I was clever enough to include ,FALSE on the end to force exact match, so.. =VLOOKUP(B4,PPs,55,FALSE). That got rid of the 'wrong' result but just put in a blank. Not the intended result. Another weird thing. I used the exact same formula and just put it in a different cell on the sheet and it worked (there aren't any relative references at play).
The only thing I have thought of but hesitate is that its because the last digit is 'small' being in the thousandths place. I can reconfigure the index number if that is it. It would be a LOT of work so I would prefer to have some confidence that is it.
Also, I am subscribed to the 'Beta' Excel so I can take advantage of some newer features. but as far as I know, vlookup is far from new.
I think my computer is insane Please help.
I use the data import feature on Excel to create an index for the rows of data and that index is, of course the first column. The range is named PPs. The format of the number is XXX.XXX or as example: 207.431. The last 3 digits are created using the line number of the table that is created on import. So a likely sequence might be:
… 206.422, 206.423, 206.424, 207.425, 207.426 … 207.430, 207.431, 208.432, 208.433...
The concept works pretty well. The data to the left of the first column can then be easily called … =Vlookup(B4 {say 207.425},PPs,55). The 55th column is pulled up and all is well with the world.
Except that sometimes (pretty frequently) Excel thinks it can't find one of these numbers. when that happens it find a close number which happens to always be the number just before. So when I call vlookup({207.426},PPs,55), I get the value for vlookup({207.425},PPs,55). I am using '{}' to represent the number. It actually comes from a formula that 'should' mathematically give the exact value. In fact I list out the values in the spreadsheet and they all display correctly. I've tried increasing number decimal places and it shows up perfectly. so 207.426 shows as 207.42600.
I was clever enough to include ,FALSE on the end to force exact match, so.. =VLOOKUP(B4,PPs,55,FALSE). That got rid of the 'wrong' result but just put in a blank. Not the intended result. Another weird thing. I used the exact same formula and just put it in a different cell on the sheet and it worked (there aren't any relative references at play).
The only thing I have thought of but hesitate is that its because the last digit is 'small' being in the thousandths place. I can reconfigure the index number if that is it. It would be a LOT of work so I would prefer to have some confidence that is it.
Also, I am subscribed to the 'Beta' Excel so I can take advantage of some newer features. but as far as I know, vlookup is far from new.
I think my computer is insane Please help.