Forum Discussion

AKnott1620's avatar
AKnott1620
Copper Contributor
Oct 15, 2024

How to return text after entering an associated number?

UPDATE: I'VE ADDED AN EXAMPLE SPREADSHEET   I have a database of location names an their corresponding location codes. Over time, people using the database have used slightly different spellings of...
  • Harun24HR's avatar
    Harun24HR
    Oct 16, 2024

    AKnott1620 All these below formula should work if I understand your question correctly.

    =VLOOKUP(B2,Table7,2,0)
    =XLOOKUP(B2,Table7[Site Code],Table7[Site Name])
    =INDEX(Table7[Site Name],MATCH(B2,Table7[Site Code],0))

    Recommended formula is to use  XLOOKUP().

     

Resources