Avatar of contrain
Flag for United States of America asked on

Getting a function to stay in an XL 2010 csv file

I have an XL 2010 worksheet I need to save as a csv file. I have a function in one cell that refers to another cell in the same worksheet, and an additional cell that also refers to that same additional cell. I have attached pictures of my situation. In the first file, Display function, (I have the display function in cell turned on)it shows what the functions are that I want to keep in my csv file. Cells F2 and G2 since they both refer to cell C2.
In the second attached file, Display function after reopen, you can see that I lose the functions that were in the previous cells. I know you get the dialog box when you're saving as a csv that some things are not compatible, but I was wondering if there is a workaround for this where I can just use the original file as a template and each time it is opened, it can be saved as a csv file with a different name, but maintain the functions in the 2 cells?

Microsoft Excel

Avatar of undefined
Last Comment

8/22/2022 - Mon
Martin Liss

I'm not certain what you mean but you could add your formula(s) to a new workbook and save that workbook as an xltx template file and the always open that file, import your csv file into it, and save as a new workbook.

Hi Martin,

Thanks for getting back to me. The only problem with importing a csv file into an xl template and saving as such is that I need to upload the file as a csv so it needs to be in that (csv) format for uploading. Other people will be working with it so I want the formulas already in place so they can just add data to columns A,B,C and the functions pull that info into the function cells.
Martin Liss

View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.

This was basically the solution I came up with. There is no way to actually save an excel 2010 file in a csv format that will maintain the formulas or funtions, so the workaround I found which is almost identical to what the Expert suggested, is to save the file with the formulas and functions intact as an XL template, then whenever I usa the template, add my data which the formulas refer to and save the end result as a csv file. I still get to save time with functions, and have my csv file too. This is the end result I was looking for.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy