Hi Mike
I have had this situation
If you search the source in the browse for
Start of "ExportToExcel routine After Headings"
There is a loop after this which is exporting your view to Excel
In the start of "Set Queue Record" in the loop
you can add your calculation of the local variable.
What I tend to do now with local variables that I want to export is create a Procedure routine when I create the local variable then in the browse and in this export embed I call the ProcedureRoutine where the value is calculated (ensures that the browse and Export agree)