floggingmolly
Board Regular
- Joined
- Sep 14, 2019
- Messages
- 167
- Office Version
- 365
- Platform
- Windows
I have 2 columns titled Reason and Code. In the reason column there are numbers like 300, 331, 600, and 401. In the Code column there are codes like 3.3A, LTD-F, etc. If there is a 401 in the Reason column, I need to place 401 in the Code column. I've tried replace value but can't get it to work. Here is the formula I tried = Table.ReplaceValue(Source,each
Code:
,each if [Reason] = "401" then [Code] = 401 else [Code],Replacer.ReplaceValue,{"Code"}) but it's not working. It says that the column Code cannot be found but its clearly on the table so I'm not sure what I'm doing wrong. Any help would be greatly appreciated.