In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

inout output

hi2019
8 - Asteroid

Hi

 

2025 NY CARO 500008 Working File Input.xlsx

 

how can I get this in output utlizing the YEAR and STATE from input for each file I will use in my workflow -yes they will be in the same format 

 

Formula?

 

thanks

1 REPLY 1
apathetichell
20 - Arcturus

left([field],4) - should give you year.

 

right(left(field,7),2) should give you state.

 

regex version - regex_replace([field],'^(\d{4}).*','$1')

regex_replace([field],'^\d{4} (\w{2}).*','$1')

Labels
Top Solution Authors