Convert excel data fields from text to number with no decimal places
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
M_6666
5 - Atom
‎07-11-2023
10:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi, Any help would be appreciated.
I have an excel file input in Alteryx.and various columns should be numbers. One column has come across as a date format and others text. How do I convert these to number? Thank you
Labels:
- Labels:
- Regex
3 REPLIES 3
17 - Castor
‎07-11-2023
10:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You can use the Multi-Field Formula tool under the Preparation tab. Select all your fields which you want to convert to numbers.
Tick the "Change data type to...." and choose your data type of choice. You can choose Double if you'd like.
Use this:
ToNumber([_CurrentField_])
Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
ShankerV
17 - Castor
‎07-11-2023
10:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @M_6666
Please use the select tool which will help to convert the String type to Integer data type.
Many thanks
Shanker V
17 - Castor
‎07-11-2023
10:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
If you'd like for us to show you, kindly provide some sample data and we can share the workflow with you so that you can see it and learn as well.
Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
