Answer the question
In order to leave comments, you need to log in
How and where in Laravel Excel to calculate cells from neighboring pages?
Is it possible to somehow implement formulas in Maatwebsite/Laravel-Excel in registerEvents that include cells from neighboring pages?
The bottom line is this, there are 3 pages:
1) DashboardWorksheet (there are only headings, and just here you need to file formulas)
2) EventWorksheet
3) I fill ProceedWorksheet
EventWorksheet and ProceedWorksheet from the database
And in DashboardWorksheet you need to drag data from EventWorksheet and ProceedWorksheet into certain cells with formulas .
There is a resulting file:
class SummaryExport implements WithMultipleSheets
{
public function sheets(): array
{
return [
'TheBook Data' => new DashboardExport(),
'TheBook Events' => new EventExport(),
'TheBook Proceeds' => new ProceedExport(),
];
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question