Skip to main content
Solved

Combine two formulas to format postal codes

  • August 19, 2023
  • 1 reply
  • 16 views

Forum|alt.badge.img+5

I'm trying to format Canadian postal codes. Often the person enters them as k0e1b0. I need them to look like K0E 1B0.

 
UPPER({PostCode}) will make them upper case
REPLACE({PostCode},4,0," ") will put the space in the middle

How can I do both of these steps in one formula field?

Best answer by Pamela_Giles

ChatGPT knew how to do it: 

UPPER(REPLACE({PostCode}, 4, 0, " "))

1 reply

Forum|alt.badge.img+5
  • Author
  • Inspiring
  • 8 replies
  • Answer
  • August 19, 2023

ChatGPT knew how to do it: 

UPPER(REPLACE({PostCode}, 4, 0, " "))