E
E
EVOSandru62021-04-05 11:39:36
Laravel
EVOSandru6, 2021-04-05 11:39:36

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(),
        ];
    }
}


Questions:
1) Is it possible to perform the calculation from neighboring pages?
2) Where is it necessary to perform the calculation - in SummaryExport or in DashboardExport ?

In which direction to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
EVOSandru6, 2021-04-05
@EVOSandru6

Solved with php spreadsheets

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question