Jul 24 2022 05:40 AM
What is the error in the formula of cell A5 of the attached file? I am using the vlookup formula to return the corresponding text of the cell value B5.
Jul 24 2022 05:51 AM
Solution=VLOOKUP(B5,CHOOSE({1,2},B7:B76,A7:A76),2,FALSE)
You can try this formula. Enter the formula with ctrl+shift+enter if you don't work with Office365 or 2021. An alternative would be INDEX and MATCH.
Jul 24 2022 06:27 AM
@ajl_ahmed If you really do have Excel for O365, you should use XLOOKUP.
=XLOOKUP(B5,B7:B76,A7:A76)
Jul 24 2022 06:53 AM
One more variant
=IFERROR( INDEX( A7:A76, MATCH( B5, B7:B76, 0 )), "no such" )
VLOOKUP() always works from left to right, XLOOKUP and INDEX/MATCH are more flexible.