Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #35: Data Cleansing Practice

Stephan_14
6 - Meteoroid

Done! 🙂

p-g
8 - Asteroid

Hi MB,

 

The error is in the syntax of the PadLeft function. You should have accounted for the length that the String needs to be once you insert the prefix character. The below modified code should work for you. Hope this helps!

 

IF Length([Safety Code]) = 6
THEN PadLeft(PadLeft([Safety Code], 7, "C"), 8, "S")
ELSE [Safety Code]
ENDIF

 

Spoiler
The complete formula using PadLeft (accounting for the other conditions) would look like this:
If Length([Safety Code]) = 6 then
PadLeft(PadLeft([Safety Code], 7, "C"), 8, "S")
ELSEIF Length([Safety Code]) > 8 then Left([Safety Code], 😎
ELSE [Safety Code]
ENDIF

 

 

stellarstevey
7 - Meteor
Spoiler
 
Minalagr
5 - Atom

My Solution - 

 

  • Remove leading zeroes - just change it to numeric format
  • Trim leading zeroes and/or descriptive text at the end - Use text to column to remove descriptive text and then change to numeric format
  • If the data value ends with ID, remove the ID - Using if formula. If it ends with ID, remove ID
  • If more than 8 chars, remove anything after 8. If only 6, add “SC” to the front. - Using if elseif formula 

Minalagr_0-1603864713824.png

 

aprachi28
6 - Meteoroid

Solved

bjschwartz3
8 - Asteroid

See attached.

michael_leoni
8 - Asteroid
Spoiler
Please see my solution below. 
Than_Alien
8 - Asteroid

Finally a weekly challenge I found easy!!!

MKteryx
8 - Asteroid

Challenge 35

joshbennett
11 - Bolide
11 - Bolide

Here is my solution!