In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Create filename from cell value

mdara
5 - Atom

Hi all,

Example:

I have a file ABCD.xlsx with a sheet named Properties

Cell A1 on the Properties sheet contains a name, e.g., XYZ

I want to save the file as XYZ.xlsx

Is there a formula or tool that can save the workbook using the dynamic value in Properties!A1?

3 REPLIES 3
jrlindem
12 - Quasar

Using the formula tool, you can follow the format of:  \path\filename.xlsx|||sheetname

 

The trick is in the triple-pipes.  But you can definitely do this with a "cell" value.  If you need the A1 value from your input data, you can just use that in the final formula to create the output, but of course you can't reference something that's not already existing, so you'll have to put some though into how that Properties!A1 value comes into your workflow.

Kottapally_Ramesh
8 - Asteroid

Here is the Output Path Logic :

[Name] + ".xlsx|||" + [Name]+ "$A1:z"

you can change the sheet name part second name part in the formula, and update the output tool config as per the attached workflow or screenshot. 

Kottapally_Ramesh_0-1765542261287.png

 

flying008
15 - Aurora

Hi, @mdara 


Because you are essentially renaming or copying an existing Excel file based on the value of cell A1 in a specific sheet, you may need to use the Run Command tool in Alteryx to achieve this requirement.

 

Spoiler
'@Rem 
@cd /d "' + FileGetDir([FileName]) + '"
copy /y "' + FileGetFileName([FileName]) + '.xlsx" "' + IIF(IsEmpty([F1]), 'Null', [F1]) + '.xlsx" 
@pause'

录制_2025_12_13_10_45_51_529.gif

 

 

Labels
Top Solution Authors