Hi there,
I'm having problems with a formula I've found which finds and prints a specific Sheet name from the filename data. It works whenever the file is saved as a spreadsheet (.xlsx or .xls) but not as an Excel template (.xltx). (It displays a #VALUE! error.)
I can pull in all the data I need and nothing will happen until I save the file as a spreadsheet. I'm guessing this has something to do with the way the formula works - it's looking for the filename, which technically doesn't exist as the working file is a template. When the file is saved as a spreadsheet, a filename is created and the data comes through.
Here's the formula:
Step1_Print_Report is the name of the sheet I'm trying to identify, as this is where the data is stored. Is there a similar formula I could try that would work even when the file has not been saved as a spreadsheet (i.e. exists in template mode still?)
Background:
To explain why I've done this. I've built a custom Email Reporting template for use with our email marketing software to enable custom reporting. It pulls together data from various sheets and presents it nicely.
As some of the data copy/pasted from the web appears in different rows per report, I've created a template that looks for certain data dynamically i.e. it looks for where a heading is and then adds the correct number to the row reference to calculate where the corresponding value is held.
Really, I was just trying to future proof the template - should I ever need to reorder or rename the sheets, Excel would accommodate the changes for me and would save me having to update about 30 odd formulas!
Cheers,
Rob
I'm having problems with a formula I've found which finds and prints a specific Sheet name from the filename data. It works whenever the file is saved as a spreadsheet (.xlsx or .xls) but not as an Excel template (.xltx). (It displays a #VALUE! error.)
I can pull in all the data I need and nothing will happen until I save the file as a spreadsheet. I'm guessing this has something to do with the way the formula works - it's looking for the filename, which technically doesn't exist as the working file is a template. When the file is saved as a spreadsheet, a filename is created and the data comes through.
Here's the formula:
Code:
=RIGHT(CELL("filename",Step1_Print_Report!A1),LEN(CELL("filename",Step1_Print_Report!A1))-FIND("]",CELL("filename",Step1_Print_Report!A1),1))
Step1_Print_Report is the name of the sheet I'm trying to identify, as this is where the data is stored. Is there a similar formula I could try that would work even when the file has not been saved as a spreadsheet (i.e. exists in template mode still?)
Background:
To explain why I've done this. I've built a custom Email Reporting template for use with our email marketing software to enable custom reporting. It pulls together data from various sheets and presents it nicely.
As some of the data copy/pasted from the web appears in different rows per report, I've created a template that looks for certain data dynamically i.e. it looks for where a heading is and then adds the correct number to the row reference to calculate where the corresponding value is held.
Really, I was just trying to future proof the template - should I ever need to reorder or rename the sheets, Excel would accommodate the changes for me and would save me having to update about 30 odd formulas!
Cheers,
Rob