Forum Discussion

apeeltyler's avatar
apeeltyler
Frequent Visitor
3 years ago
Solved

I'm using Text.Contains and need to remove a single text value and add another value in its place.

Below is the formula I'm using   if Text.Contains([Employee ID], "T") then "0" else [Employee ID]   What I'm after is if the Employee ID contains a 'T', for example: T0123, I want to remove the...
  • Syk's avatar
    3 years ago

    If your ID's are a specific length, you can use text.end 
    try

    if Text.Contains([Employee ID], "T") then "0" & text.right(Employee ID,4) else [Employee ID]