How to output multiple tabs within a single Excel file based on a field name
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I am needing to output segments of a table to separate tabs within one Excel file.
Here is an example of the table where I need the data to output to a separate tab based on the Tab Name field.
Vehicle# | State | Tab Name |
CCAB9 | CA | 327 |
CCAG3 | CA | 319 |
CCAG3 | CA | 319 |
JCEA1 | CA | 324 |
JCEA4 | TX | 335 |
JCEA5 | CA | 318 |
JPFA9 | CA | 320 |
I have attempted to do this with the following configuration, but am receiving an error to specify sheet name. I have specified a sheet name of Sheet1.
Solved! Go to Solution.
- Labels:
- Output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Can you show the entire configuration box? Or even better, attach a copy of the yxmd file? If you don't have a sheet name in the initial file specification, you could get that error even if you are replacing the sheet name.
The attached workflow does save the data in separate tabs. Just as a test, I temporarily removed "|||Sheet1" from the file name and did get the error you described.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi EW and TonyA,
I'm sorry I am just seeing your responses...
Here is a screenshot of the entire configuration box. As you suggested EW I selected "Change Entire File Path" and still received the same error message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank echuong1. I'll be able to use that in the future. I'm attempting to create a separate tab within the same file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @sonseeahray - try using the formula tool to create a full path with the filename and tab name, like
"H:\Alteryx Test Output.xlsx|||"+tostring([Tab Name])
(or changing Tab Name to a string first as in my original solution)
and using that as the Field Containing Filename or Part of Filename with Change Entire File Path. It looks like you're just using the Tab Name in your screenshot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you @EW! That works perfectly!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Trying to do this writing to SharePoint. It writes the first sheet, so my connection is fine. But gives me the Error Win32 Error 1175 for my other two sheets. I'm using a Formula Tool to pass the sheet name to my 3 output tools.
