Dynamic file name creation with formula

Current formula is below. I get an extra hyphen between project name and size if the row is a level 2.or 3. I can't figure out how to not have an extra hyphen. Not sure if I need to add OR statement so it looks at each level then pulls the correct information. The file name should be Job#_Project Name_Size

=IF(Level@row >= "3", INDEX(ANCESTORS([Job #]@row ), 1), [Job #]@row ) + "_" + IF(Level@row >= "2", [Project Name]@row , "") + "_" + IF(Level@row = "1", [Project Name]@row , "") + "_" + [Size (WxH)]@row

Result: PRAFI_001207_DOM25_Breakout01_RetractableBanner__24x81

Best Answer

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!