Forum Discussion
Get column matching name base on key
Hi everyone, need help on this one. I use data from table 2, but sometimes the name is not exactly, I want the name it match with the Name form other table that having same code, however sometimes the code in Table 2 is not appear in Table 1, so in that case we will keep the name the same as "Table 2".
Please help me!!!!
- Anonymous2 years ago
Hi VictorV ,
Based on the data you provided, I did the following:
Create a columnColumn = IF( IFERROR(LOOKUPVALUE('Table 1'[Name],'Table 1'[Code],'Table 2'[Code]),'Table 2'[Name]) <> BLANK(), IFERROR(LOOKUPVALUE('Table 1'[Name],'Table 1'[Code],'Table 2'[Code]),'Table 2'[Name]), 'Table 2'[Name] )Final output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
2 Replies
- AnonymousNot applicable
Hi VictorV ,
Based on the data you provided, I did the following:
Create a columnColumn = IF( IFERROR(LOOKUPVALUE('Table 1'[Name],'Table 1'[Code],'Table 2'[Code]),'Table 2'[Name]) <> BLANK(), IFERROR(LOOKUPVALUE('Table 1'[Name],'Table 1'[Code],'Table 2'[Code]),'Table 2'[Name]), 'Table 2'[Name] )Final output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
- VictorV
Helper I
Thanks a lot!!! it's work perfect