Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

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