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

Excel Formula

Abhishekjoshua
7 - Meteor

Can someone help me achieve the below excel formula in Alteryx? similarly for month and year as well

 

Abhishekjoshua_0-1670585897845.png

15 REPLIES 15
ShankerV
17 - Castor

Hi @Abhishekjoshua 

 

Please consider the final output as the below. Where I have fine tweaked to work on all different date types.

 

ShankerV_0-1670588925451.png

 

ShankerV
17 - Castor

Hi @Abhishekjoshua 

 

Explaining what happens in my workflow, 

 

I have used Text to Columns tool, as I see your data is using a delimiter -

Hence the output is split into 3 different columns.

 

ShankerV_0-1670589103572.png

 

Then the incoming date might be

8-Jan-22

12-Jan-22

15-Jan-2022

 

the expected output is 

08  Jan  2022

12  Jan  2022

15  Jan  2022

 

Hence used the formula tool to check the condition whether it contains 2 digits, if not used PadLeft option to add 0 in the front.

Same in year also.

 

Hope this helps!!!! Hope your issue is resolved. Feel free to mark helpful answers as a solution, so that future users with the same issue can find them easier!!!!

 

Many thanks

Shanker V

 

 

 

Abhishekjoshua
7 - Meteor

@ShankerV  I hope this helps, I will try it out and let you know my output. Thank you so much!

Abhishekjoshua
7 - Meteor

@ShankerV  Hi, when the column is spilt into 3, how can I name the 3 columns differently? 

 

ShankerV
17 - Castor

Hi @Abhishekjoshua 

 

ShankerV_0-1670590050475.png

 

ShankerV
17 - Castor

Hi @Abhishekjoshua 

 

One more method also, where can use RegEx tool.

By this method, I can reach the solution with just 2 tools highlighted in yellow.

 

ShankerV_0-1670590363533.png

 

Labels