Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

alteryx adding number

ryanzhang487
8 - Asteroid

Hi community, I have a column like this showing in the picture, i would want a formula to add 1 to the right side of the " - " (eg, 5-9 will be 5-10, 1-2 will be 1-3),

how do I do that please?

Thank you 

 

 

 

alteryx question.png

1 REPLY 1
binuacs
21 - Polaris

@ryanzhang487 One way of doing this with the formula tool

 

 

SubString([Temp],0,FindString([Temp], '-'))+'-'+toString(toNumber(SubString([Temp],FindString([Temp], '-')+1,Length([Temp])))+1)

 

 

 

binuacs_0-1678388039466.png

 

 

Labels
Top Solution Authors