I workflow where I need to update single columns in a large spreasheet with formulas in most columns. I will need to reference the column using the column header (1st row).
How do I achieve this with Alteryx?
Hi,
Can you expand on what exactly you're trying to achieve? Generally when you use an Excel file as input to Alteryx, the columns contain the data values only. Similarly, when you write back the formulas will be overwritten. You may be able to overcome this by writing back to CSV - see https://community.alteryx.com/t5/Alteryx-Knowledge-Base/Writing-Formulas-to-Excel/ta-p/12337 by @MattD.
Cheers,
Iain
Essentially what I need to do is at the end of the workflow, I need to update data certain columns in an existing spreadsheet. I don't want to overwrite the spreadsheet.
In that case you can set the output options in the Output Tool to Overwrite Sheet and make sure that the 'Write to File or Database' field is set to use either an existing named range in the spreadsheet or the cells that you want to write to. e.g. c;\folder\file.xlsx|||myrange or c;\folder\file.xlsx|||Sheet1$F2:F20
Make copies first :-)
Iain
@ivoller solution should do the trick!
An alternative solution would be to simply bring in the remainder of the file that you don't want to overwrite into alteryx, then stitch your tables together inside Alteryx using the join tool and then overwrite the whole sheet.
Ben
@BenMoss, wouldn't bring the content in and stitching using join overwrite the macros in the Excel file?
Sorry yes of course, hence why you are looking for this solution!
Ben
@ivoller. I am not following you. Can you please explain?
@ivoller, i think I understand what you are recommending. But how would I implement this for dynamic column names. I don't have the column ranges during the development of the workflow. The column ranges are dynamic, and need to be reference by the Column Title (1st row) rather than Spreadsheet ranges......