Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start 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