Some work on refactoring the ReferenceHelper to extract the logic for updating cell references. This is a preliminary step toward allowing updates to absolute cell references, required to update Conditional Formatting rules.

This commit is contained in:
MarkBaker
2022-03-15 20:08:02 +01:00
parent 09cf6abded
commit 6f84780bb9
4 changed files with 241 additions and 202 deletions
@@ -22,6 +22,34 @@ return [
'2020',
'=SUM(A1:C3)',
],
'column range' => [
'=SUM(B:C)',
2,
0,
'2020',
'=SUM(D:E)',
],
'column range with absolute' => [
'=SUM($B:C)',
2,
0,
'2020',
'=SUM($B:E)',
],
'row range' => [
'=SUM(2:3)',
0,
2,
'2020',
'=SUM(4:5)',
],
'row range with absolute' => [
'=SUM($2:3)',
0,
2,
'2020',
'=SUM($2:5)',
],
[
'=SUM(2020!C3:E5,2019!C3:E5)',
-2,