Jump to content
• 0

# Separate numbers

## Question

How to separate number,

In a calculatedfield I only use the second digit, like:

the number = 35 I only want to use the digit 5.

I now have (only) this in the calculated field:

[@field:Firstnumber]*7   (in my case thats 5*7) = 35

Thanks

## Recommended Posts

• 0

Use calculated field functions

1) Use Cast to convert the number to a string,

2) select the string character  using

Left(string, number)

3) Use Cast to convert the string to a number.

hope it helps.

##### Share on other sites

• 0

Hi, just to update this post. It seems that the function that you will need is "Right(string,length)"since you will be getting the last number from the right which is 5.

You may consider this workaround:

Right((CONVERT(VARCHAR, ([@field: Fieldname]))),1)

Just change the field name based on the calculated field that you are using.

##### Share on other sites

• 0

Hello! Maybe this forum post could be helpful:

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
• #### Browse

×
• Create New...