Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
We’re experiencing technical issues with our vendor that are affecting license activations for Designer Desktop. We don’t yet have an estimated resolution time. We apologize for the inconvenience and will share updates as we have them.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Write to Excel - Over write specific range.

jkell
7 - Meteor

Hi - I used this post to write multiple outputs from a single workflow to individual sheets in excel.

 

But I am wondering if the tool can be configured to overwrite only specific ranges within each tab (the same range for each tab).

I am able to do this when configurating the Output Data tool ("C:\\test.xlsx|||Sheet1$a10:b20" ) when I am not writing to multiple tabs.

 

But when doing using dynamic method provided in the post, it is not working as expected, and each sheet is overwritten entirely each time. 

 

Any thoughts? Thanks!

6 REPLIES 6
apathetichell
20 - Arcturus

see the bottom dropdown on your output data - "change entire path" has to be selected. you can then send in your full filepath with:

 

filename.xlsx|`sheetname`$range send into your output data.

jkell
7 - Meteor

the original post says to use "change file/table name"

 

I tried updating to "change entire path" but now I am getting a output error "Error: Output Data (73): You must specify a sheet name."

 

But as you can see in the screen shot, I do have a sheet name designated 

kboeckholt
7 - Meteor

@jkell You're almost there - It looks like you have Cust ID selected at the bottom. I'm assuming you want each sheet in the output to use the Cust ID as the sheet name. Since you're now changing the entire file path, the field selected here needs to contain a full path instead of just the sheet name. 

 

You'll want to create a new field which contains the full file path where you want the data to be output:

kboeckholt_1-1677215060121.png

 

Then select that new field in the Output Data tool and uncheck the box for "Keep Field in Output"

kboeckholt_2-1677215111646.png

 

Hope that helps!

jkell
7 - Meteor

@kboeckholt Bingo! That did the trick, thank you!

SkyDe
6 - Meteoroid

Hello,

Do you know why I'm having issues with a .xls file? I have done an overwrite and preserver formatting for .xlsx and it has worked, but I can not get it to work for .xls, please see the attached screen shots.



KGT
13 - Pulsar

Hi @SkyDe, you're better off posting as a separate question to get the eyes. Often this will only be seen by the people in this post and only if they log in and check updates to old posts.

 

The solution may be that you need to qualify the sheet name with 'Sheetname$'. This used to be the method used but is not required anymore. I'm guessing it may still be needed for XLS files in some situations. The XLS and XLSX are written using entirely different drivers and so could act differently. The last time Microsoft used XLS was pre 2007 and they have stopped "supporting" it since, so the XLS driver might need older techniques.

Labels
Top Solution Authors